How to find the best model parameters in scikit-learn
In this video, you'll learn how to efficiently search for the optimal tuning parameters (or "hyperparameters") for your machine learning model in order to maximize its performance. I'll start by demonstrating an exhaustive "grid search" process using scikit-learn's GridSearchCV class, and then I'll compare it with RandomizedSearchCV, which can often achieve similar results in far less time.
Download the notebook: https://github.com/justmarkham/scikit-learn-videos
Grid search user guide: http://scikit-learn.org/stable/modules/grid_search.html
GridSearchCV documentation: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html
RandomizedSearchCV documentation: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html
Comparing randomized search and grid search: http://scikit-learn.org/stable/auto_examples/model_selection/plot_randomized_search.html
Randomized search video: https://youtu.be/0wUF_Ov8b0A?t=17m38s
Randomized search notebook: https://github.com/amueller/pydata-nyc-advanced-sklearn/blob/master/Chapter%203%20-%20Randomized%20Hyper%20Parameter%20Search.ipynb
Random Search for Hyper-Parameter Optimization: http://www.jmlr.org/papers/volume13/bergstra12a/bergstra12a.pdf
WANT TO GET BETTER AT MACHINE LEARNING? HERE ARE YOUR NEXT STEPS:
1) WATCH my scikit-learn video series:
https://www.youtube.com/playlist?list=PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A
2) SUBSCRIBE for more videos:
https://www.youtube.com/dataschool?sub_confirmation=1
3) JOIN "Data School Insiders" to access bonus content:
https://www.patreon.com/dataschool
4) ENROLL in my Machine Learning course:
https://www.dataschool.io/learn/
5) LET'S CONNECT!
- Newsletter: https://www.dataschool.io/subscribe/
- Twitter: https://twitter.com/justmarkham
- Facebook: https://www.facebook.com/DataScienceSchool/
- LinkedIn: https://www.linkedin.com/in/justmarkham/
Видео How to find the best model parameters in scikit-learn канала Data School
Download the notebook: https://github.com/justmarkham/scikit-learn-videos
Grid search user guide: http://scikit-learn.org/stable/modules/grid_search.html
GridSearchCV documentation: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html
RandomizedSearchCV documentation: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html
Comparing randomized search and grid search: http://scikit-learn.org/stable/auto_examples/model_selection/plot_randomized_search.html
Randomized search video: https://youtu.be/0wUF_Ov8b0A?t=17m38s
Randomized search notebook: https://github.com/amueller/pydata-nyc-advanced-sklearn/blob/master/Chapter%203%20-%20Randomized%20Hyper%20Parameter%20Search.ipynb
Random Search for Hyper-Parameter Optimization: http://www.jmlr.org/papers/volume13/bergstra12a/bergstra12a.pdf
WANT TO GET BETTER AT MACHINE LEARNING? HERE ARE YOUR NEXT STEPS:
1) WATCH my scikit-learn video series:
https://www.youtube.com/playlist?list=PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A
2) SUBSCRIBE for more videos:
https://www.youtube.com/dataschool?sub_confirmation=1
3) JOIN "Data School Insiders" to access bonus content:
https://www.patreon.com/dataschool
4) ENROLL in my Machine Learning course:
https://www.dataschool.io/learn/
5) LET'S CONNECT!
- Newsletter: https://www.dataschool.io/subscribe/
- Twitter: https://twitter.com/justmarkham
- Facebook: https://www.facebook.com/DataScienceSchool/
- LinkedIn: https://www.linkedin.com/in/justmarkham/
Видео How to find the best model parameters in scikit-learn канала Data School
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Examine the intermediate steps in a PipelineDrop the first category from binary features (only) with OneHotEncoderGuess the MYSTERY course 🎁Course outline: "Master Machine Learning with scikit-learn"Join Data School Insiders on Patreon!Load a toy dataset into a DataFrameHow to read the scikit-learn documentationHistGradientBoostingClassifier natively supports missing valuesHow to save a scikit-learn Pipeline with custom transformersShuffle your dataset when using cross_val_scoreAdd a missing indicator to encode "missingness" as a featureThree reasons not to use drop='first' with OneHotEncoderDon't use .values when passing a pandas object to scikit-learnEstimators only print parameters that have been changedAdditional Resources for Learning Git and GitHubWhat's your favorite pandas trick??Cost-sensitive learning in scikit-learnMost parameters should be passed as keyword argumentsPassthrough some columns and drop others in a ColumnTransformerTune the parameters of a VotingClassifer or VotingRegressorMachine Learning with Text in scikit-learn (PyData DC 2016)