Speed up GridSearchCV using parallel processing

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 7

  • @dataschool
    @dataschool  3 роки тому

    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

  • @anefuoche1053
    @anefuoche1053 3 роки тому

    the truth is the calmness of your voice makes learning exciting too

    • @dataschool
      @dataschool  3 роки тому

      That's great to hear! 🙏

  • @philwebb59
    @philwebb59 3 роки тому +2

    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.

    • @dataschool
      @dataschool  3 роки тому +1

      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!

  • @mdmantejsingh
    @mdmantejsingh 3 роки тому +1

    Thank you, it's good to know.