Content deleted Content added
Revert commercial spam to last version by DMacks. Open source entries are required. |
Simplified/clarified Grid and Random Search |
||
Line 1:
In [[machine learning]], '''hyperparameter optimization''' or tuning is the problem of choosing a set of optimal [[Hyperparameter (machine learning)|hyperparameters]] for a learning algorithm.
The same kind of machine learning model can require different constraints, weights or learning rates to generalize different data patterns. These measures are called hyperparameters, and have to be tuned so that the model can optimally solve the machine learning problem. Hyperparameter optimization finds a tuple of hyperparameters that yields an optimal model which minimizes a predefined [[loss function]] on given independent data.<ref name=abs1502.02127>{{cite arxiv |eprint=1502.02127|last1=Claesen|first1=Marc|title=Hyperparameter Search in Machine Learning|author2=Bart De Moor|class=cs.LG|year=2015}}</ref> The objective function takes a tuple of hyperparameters and returns the associated loss.<ref name=abs1502.02127/> [[Cross-validation (statistics)|Cross-validation]] is often used to estimate this generalization performance.<ref name="bergstra">{{cite journal|last1=Bergstra|first1=James|last2=Bengio|first2=Yoshua|year=2012|title=Random Search for Hyper-Parameter Optimization|url=http://jmlr.csail.mit.edu/papers/volume13/bergstra12a/bergstra12a.pdf|journal=J. Machine Learning Research|volume=13|pages=281–305}}</ref>
== Approaches ==
Line 33:
{{main article|Random search}}
Random Search replaces the exhaustive enumeration of all combinations by selecting them randomly. This can be simply applied to the discrete setting described above, but also generalizes to continuous and mixed spaces. It can outperform Grid search, especially when only a small number of hyperparameters affects the final performance of the machine learning algorithm<ref name="bergstra" />. In this case, the optimization problem is said to have a low intrinsic dimensionality<ref>{{Cite journal|last=Ziyu|first=Wang,|last2=Frank|first2=Hutter,|last3=Masrour|first3=Zoghi,|last4=David|first4=Matheson,|last5=Nando|first5=de Feitas,|date=2016|title=Bayesian Optimization in a Billion Dimensions via Random Embeddings|url=http://jair.org/papers/paper4806.html|journal=Journal of Artificial Intelligence Research|language=en|volume=55|doi=10.1613/jair.4806}}</ref>. Random Search is also [[embarrassingly parallel]], and additionally allows to include prior knowledge by specifying the distribution from which to sample.
=== Bayesian optimization ===
{{main article|Bayesian optimization}}
Bayesian optimization is a
| last = Hutter
| first = Frank
Line 105 ⟶ 94:
| arxiv = 1208.3719
| class = cs.LG
}}</ref> to obtain better results in fewer
=== Gradient-based optimization ===
|