Even in the case of Keras 1.2.2, referring to merge , it includes multiprocessing, but model.fit_generator() is still about 4-5x slower than model.fit() due to disk read speed limitations. How can this be accelerated, say, by additional multiprocessing?
model.fit_generator()
model.fit()
You can check the workers and max_queue_size fit_generator() parameters in the documentation. Essentially, more workers create more threads to load data into a queue that transfers data to your network. There is a possibility that filling the queue can cause memory problems, so you can reduce max_queue_size to avoid this.
workers
max_queue_size
fit_generator()
I had a similar problem when I switched to dask to load data into memory, and not using the generator where I used pandas. Thus, depending on your data size, if possible, load the data into memory and use the matching function.
Try a solid state drive if you can afford it. There is no other way, no matter how much parallel processing you use.
Source: https://habr.com/ru/post/1015552/More articles:What does lubridate mean to mark the "method with signature" Timespan # Timespan selected for the function "% /%" means? - rHow to extend default webpack configuration in Ionic v2 - webpackAngular 2 and .NET Web API Authentication - angulars3 urls - get name and path in bucket - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1015551/fitting-multiple-parametric-equations-to-curve-using-nls&usg=ALkJrhh9Zyk1Oqd-L8-ELD0B58F3PKtypQMongoDb poll on indexed field vs Tailable Cursor - mongodbF # Deedle, row access - f #Office.js revokes browser history features using history - office-jsHow to add axis text in this negative and positive bars differently using ggplot2? - rOffice.initialize raises $ rootScope: infdig - angularjsAll Articles