Grid Search and Random Search
created:: 2023-09-23T22:05:50
up:: Hyperparameter Optimization
tags:: #🌱 #machine-learning
Grid and Random search are both ways to do Hyperparameter Optimization. Examples you have multiple configs or settings to try,
with grid search, you will sequentially try each value and see what is the best config for the best result. This usually takes a long time to do because we literally explore each value one by one.
with random search, you will take each one knob randomly for n
times and see what is the best outcome of all those multiple sequence of trying. This method doesn't took that much time compared to grid search.
this two methods is limited and biased because we don't know if there're any other values that can be better than your current config. Below is the example.
!300
in conclusion, both ways aren't that good compared to other advanced Hyperparameter Optimization Techniques.
Related:
Resources
-
David, D. (2020). Hyperparameter Optimization Techniques to Improve Your Machine Learning Model’s Performance. Retrieved from https://www.freecodecamp.org/news/hyperparameter-optimization-techniques-machine-learning/. Accessed 23 Sept. 2023.