From the course: Deep Learning with Python: Optimizing Deep Learning Models

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Using KerasTuner for hyperparameter tuning

Using KerasTuner for hyperparameter tuning

- [Person] In this video, you will learn how to use Keras Tuner to perform a search for the optimal hyperparameters of a deep-learning model. I'll be writing the code in the "04_05e" file. You can follow along by completing the empty code cells in the "04_05b" file. Note that this video is the second in a two-video sequence that teaches you how to tune the hyperparameters of a deep-learning model. If you have not done so, watch the previous course video on how to define a tune-able deep-learning model for a detailed explanation of the prior code. Also, make sure to run the previously routine code to get your environment up to speed. I've already done so. So having defined our hyperparameter tune-able model, we now need to set up a tuner. Here, we choose Hyperband, a resource-efficient approach to hyperparameter tuning that builds upon random search and combines it with the principles of early stopping. Its primary goal is to reduce the computational cost of hyperparameter tuning by…

Contents