Types of Hyperparameter Tuning

Types of Hyperparameter Tuning

What is hyperparameter tuning?

Hyperparameter tuning is an extra step to make sure that your model is using the right values for parameters whose values are selected randomly. Every algorithm has such variables whose values are not fixed. You could use any arbitrary value as long as it’s benefitting the accuracy of the model. There are mainly 4 different approaches to tune your model.

  • Manual Search: Here you try random values based on your intuition or use some standard values noticed by people over the period.
  • Grid Search (GridSearchCV): Grid Search, known as GridSearchCV in python, works on a simple principle. It will make all different combinations of hyperparameter values from the choices you have provided it with. This becomes computationally expensive when we have a lot of hyperparameters or a lot of choices to choose from. Being computationally heavy, it will guarantee you the best combination from the range of values you’ve provided.
  • Random Search (KerasTuner): Unlike Grid Search, Random Search will select random combinations of the inputted values and test them. This won’t guarantee you 100% results, but it will be quick to implement.
  • Bayesian Optimization: Unlike Grid Search and Random Search, Bayesian Optimization takes into account the results of past combinations and selects the next set of values accordingly. This will converge faster in comparison to the above methods, as every next selection is made with some prior information.

 


要查看或添加评论,请登录

Rithwik Chhugani的更多文章

  • Why use Spark?

    Why use Spark?

    The very first reason you'll find on the internet is to work with Big Data, but why not use Pandas, Hadoop, or Dask?…

  • Tools for Smart/Lazy Data Scientists (ft. LazyPredict)

    Tools for Smart/Lazy Data Scientists (ft. LazyPredict)

    Being a data scientist you don't necessarily need to write tons and tons of code to see the performance of your models.…

  • Vanilla Regression VS Robust Regression

    Vanilla Regression VS Robust Regression

    Regression is one of the most widely used algorithms for forecasting. Regression is the first thing you'd learn in the…

  • Likelihood VS Probability

    Likelihood VS Probability

    It may look simple, but it's capable to create head-scratching situations at times. Let's understand in a few words…

  • Popular CNN Architectures

    Popular CNN Architectures

    Every now and then researchers try to fine-tune their existing model or come up with new architectures to win the…

社区洞察