Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hyperparameter Tuning with Python

You're reading from   Hyperparameter Tuning with Python Boost your machine learning model's performance via hyperparameter tuning

Arrow left icon
Product type Paperback
Published in Jul 2022
Publisher Packt
ISBN-13 9781803235875
Length 306 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Louis Owen Louis Owen
Author Profile Icon Louis Owen
Louis Owen
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1:The Methods
2. Chapter 1: Evaluating Machine Learning Models FREE CHAPTER 3. Chapter 2: Introducing Hyperparameter Tuning 4. Chapter 3: Exploring Exhaustive Search 5. Chapter 4: Exploring Bayesian Optimization 6. Chapter 5: Exploring Heuristic Search 7. Chapter 6: Exploring Multi-Fidelity Optimization 8. Section 2:The Implementation
9. Chapter 7: Hyperparameter Tuning via Scikit 10. Chapter 8: Hyperparameter Tuning via Hyperopt 11. Chapter 9: Hyperparameter Tuning via Optuna 12. Chapter 10: Advanced Hyperparameter Tuning with DEAP and Microsoft NNI 13. Section 3:Putting Things into Practice
14. Chapter 11: Understanding the Hyperparameters of Popular Algorithms 15. Chapter 12: Introducing Hyperparameter Tuning Decision Map 16. Chapter 13: Tracking Hyperparameter Tuning Experiments 17. Chapter 14: Conclusions and Next Steps 18. Other Books You May Enjoy

Implementing Hyper Band

The extension of Successive Halving, the Hyper Band (HB) method (see Chapter 6), is implemented in the scikit-hyperband package. This package is built on top of sklearn, which means it also provides a very similar interface for GridSearchCV, RandomizedSearchCV, HalvingGridSearchCV, and HalvingRandomSearchCV.

In contrast with the default SH budget definition in the sklearn implementation, Scikit-Hyperband defines the budget as the number of estimators, n_estimators, in an ensemble of trees, or the number of iterations for estimators trained with stochastic gradient descent, such as the XGBoost algorithm. Additionally, we can use any other hyperparameters that exist in the estimator as the budget definition. However, scikit-hyperband doesn’t allow us to use the number of samples as the budget definition.

Let’s use the same example as in the Implementing Successive Halving section, but with a different hyperparameter space. Here, we use the...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hyperparameter Tuning with Python
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon