I hope this tip helps your work go faster! ⏰ Another way to save time is to use RandomizedSearchCV instead of GridSearchCV. Watch this video to learn more: ua-cam.com/video/Q5dH5mOQ_ik/v-deo.html
There's more to it than simply setting n_jobs to -1. You also need enough RAM for all those parallel processes to share. Otherwise, you max out your swap space and everything comes to a grinding halt.
Thanks Phil! That's why I always recommend timing your process (with and without n_jobs set to -1) to see if it's helping or not. It's hard to know whether you have enough RAM for any given process without just trying it!
I hope this tip helps your work go faster! ⏰ Another way to save time is to use RandomizedSearchCV instead of GridSearchCV. Watch this video to learn more: ua-cam.com/video/Q5dH5mOQ_ik/v-deo.html
the truth is the calmness of your voice makes learning exciting too
That's great to hear! 🙏
There's more to it than simply setting n_jobs to -1. You also need enough RAM for all those parallel processes to share. Otherwise, you max out your swap space and everything comes to a grinding halt.
Thanks Phil! That's why I always recommend timing your process (with and without n_jobs set to -1) to see if it's helping or not. It's hard to know whether you have enough RAM for any given process without just trying it!
Thank you, it's good to know.
You're welcome!