No video

Speed up GridSearchCV using parallel processing

  Рет қаралды 4,908

Data School

Data School

Күн бұрын

Want your grid search to run faster? Set n_jobs=-1 to use parallel processing with all CPUs!
👉 New tips every TUESDAY and THURSDAY! 👈
🎥 Watch all tips: • scikit-learn tips
🗒️ Code for all tips: github.com/jus...
💌 Get tips via email: scikit-learn.tips
=== WANT TO GET BETTER AT MACHINE LEARNING? ===
1) LEARN THE FUNDAMENTALS in my intro course (free!): courses.datasc...
2) BUILD YOUR ML CONFIDENCE in my intermediate course: courses.datasc...
3) LET'S CONNECT!
- Newsletter: www.dataschool...
- Twitter: / justmarkham
- Facebook: / datascienceschool
- LinkedIn: / justmarkham

Пікірлер: 7
@dataschool
@dataschool 2 жыл бұрын
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: kzfaq.info/get/bejne/h5uUe5ietLfDmZ8.html
@anefuoche1053
@anefuoche1053 2 жыл бұрын
the truth is the calmness of your voice makes learning exciting too
@dataschool
@dataschool 2 жыл бұрын
That's great to hear! 🙏
@philwebb59
@philwebb59 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 2 жыл бұрын
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 2 жыл бұрын
Thank you, it's good to know.
@dataschool
@dataschool 2 жыл бұрын
You're welcome!
Create feature interactions using PolynomialFeatures
4:08
Data School
Рет қаралды 7 М.
Hands-On Hyperparameter Tuning with Scikit-Learn: Tips and Tricks
18:35
Ryan & Matt Data Science
Рет қаралды 2 М.
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 40 МЛН
Алексей Щербаков разнес ВДВшников
00:47
wow so cute 🥰
00:20
dednahype
Рет қаралды 24 МЛН
Parallelize Python Tasks with Joblib
13:33
NeuralNine
Рет қаралды 25 М.
Use cross_val_score and GridSearchCV on a Pipeline
7:02
Data School
Рет қаралды 13 М.
Parallel Computing in R
11:34
Matt Birch
Рет қаралды 3,9 М.
Hyperparameter Tuning of Machine Learning Model in Python
24:12
Data Professor
Рет қаралды 43 М.
How do I encode categorical features using scikit-learn?
27:59
Data School
Рет қаралды 138 М.
Hyperparameter Optimization for Xgboost
14:55
Krish Naik
Рет қаралды 116 М.
XGBoost's Most Important Hyperparameters
6:28
Super Data Science: ML & AI Podcast with Jon Krohn
Рет қаралды 4,2 М.