Article complete

Top 8 Approaches For Tuning Hyperparameters Of Machine Learning Models

A series of colorful, stacked boats on a sandy shore under a blue sky with scattered clouds.

Key takeaways

  • Hyperparameter tuning is essential for achieving optimal performance in machine learning models.
  • Bayesian Optimisation is effective for tuning complex models, particularly deep neural networks.
  • Evolutionary algorithms offer a general approach to modifying candidate solutions for optimisation.

Takeaways drafted with AI from the article text.

We have curated a list of top eight approaches for tuning hyperparameters of machine learning models.

(The list is in alphabetical order)

1| Bayesian Optimisation

About: Bayesian Optimisation has emerged as an efficient tool for hyperparameter tuning of machine learning algorithms, more specifically, for complex models like deep neural networks. It offers an efficient framework for optimising the highly expensive black-box functions without knowing its form. It has been applied in several fields including learning optimal robot mechanics, sequential experimental design, and synthetic gene design. 

Know more here.

2| Evolutionary Algorithms

About: Evolutionary algorithms (EA) are optimisation algorithms that work by modifying a set of candidate solutions (population) according to certain rules called Operators. One of the main advantages of the EA is their generality: Meaning EA can be used in a broad range of conditions due to their simplicity and independence from the underlying problem. In hyperparameter tuning problems, evolutionary algorithms have proved to perform better than grid search techniques based on an accuracy-speed ratio.

Know more here.

3| Gradient-Based Optimisation

About: Gradient-based optimisation is a methodology to optimise several hyperparameters, based on the computation of the gradient of a machine learning model selection criterion with respect to the hyperparameters. This hyperparameter tuning methodology can be applied when some differentiability and continuity conditions of the training criterion are satisfied.

Know more here.

About: Grid search is a basic method for hyperparameter tuning. It performs an exhaustive search on the hyperparameter set specified by users. This approach is the most straightforward leading to the most accurate predictions. Using this tuning method, users can find the optimal combination. Grid search is applicable for several hyper-parameters, however, with limited search space. 

Know more here.

5| Keras’ Tuner

About: Keras tuning is a library that allows users to find optimal hyperparameters for machine learning or deep learning models. The library helps to find kernel sizes, learning rate for optimisation, and different hyper-parameters. Keras tuner can be used for getting the best parameters for various deep learning models for the highest accuracy.

Know more here.

6| Population-based Optimisation

About: Population-based methods are essentially a series of random search methods based on

genetic algorithms, such as evolutionary algorithms, particle swarm optimisation, among others. One of the most widely used population-based methods is population-based training (PBT), proposed by DeepMind. PBT is a unique method in two aspects:

  • It allows for adaptive hyper-parameters during training
  • It combines parallel search and sequential optimisation

Know more here.

7| ParamILS  

About: ParamILS (Iterated Local Search in Parameter Configuration Space) is a versatile stochastic local search approach for automated algorithm configuration. ParamILS is an automated algorithm configuration method that helps dvelop high-performance algorithms and their applications.

ParamILS uses default and random settings for initialisation and employs iterative first improvement as a subsidiary local search procedure. It also uses a fixed number of random moves for perturbation and always accepts better or equally-good parameter configurations, but re-initialises the search at random with probability. 

Know more here.

About: Random search can be said as a basic improvement on grid search. The method refers to a randomised search over hyper-parameters from certain distributions over possible parameter values. The searching process continues till the desired accuracy is reached. Random search is similar to grid search but has proven to create better results than the latter. The approach is often applied as the baseline of HPO to measure the efficiency of newly designed algorithms. Though random search is more effective than grid search, it is still a computationally intensive method.

Know more here.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

More in this story

hyperparameter optimisation · 5 stories
  1. You are here: Top 8 Approaches For Tuning Hyperparameters Of Machine Learning Models
  2. Guide to Scalable and Robust Bayesian Optimization with Dragonfly
  3. Steps to perform when your machine learning model overfits in training
  4. How to use genetic algorithm for hyperparameter tuning of ML models?
  5. Speed-up hyperparameter tuning in deep learning with Keras hyperband tuner
About the author

Contributor

A Technical Journalist who loves writing about Machine Learning and Artificial Intelligence. A lover of music, writing and learning something out of the box.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.