Hyperopt: a Python library for model selection and hyperparameter optimization
Open accessThe DOI matches its Crossref record; 21 of the 21 references it cites were found in a registry or an index.
Abstract
Sequential model-based optimization (also known as Bayesian optimization) is one of the most efficient methods (per function evaluation) of function minimization. This efficiency makes it appropriate for optimizing the hyperparameters of machine learning algorithms that are slow to train. The Hyperopt library provides algorithms and parallelization infrastructure for performing hyperparameter optimization (model selection) in Python. This paper presents an introductory tutorial on the usage of the Hyperopt library, including the description of search spaces, minimization (in serial and parallel), and the analysis of the results collected in the course of minimization. This paper also gives an overview of Hyperopt-Sklearn, a software project that provides automatic algorithm configuration of the Scikit-learn machine learning library. Following Auto-Weka, we take the view that the choice of classifier and even the choice of preprocessing module can be taken together to represent a single large hyperparameter optimization problem . We use Hyperopt to define a search space that encompasses many standard components (e.g. SVM, RF, KNN, PCA, TFIDF) and common patterns of composing them together. We demonstrate, using search algorithms in Hyperopt and standard benchmarking data sets (MNIST, 20-newsgroups, convex shapes), that searching this space is practical and effective. In particular, we improve on best-known scores for the model space for both MNIST and convex shapes. The paper closes with some discussion of ongoing and future work.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Scikit-learn: Machine Learning in Python
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Müller, A., Nothman, J., Louppe, G., et al. (2012) · arXiv · doi:10.48550/arxiv.1201.0490 · Cited by 71,016
Gradient-based learning applied to document recognition
Lecun, Y., Bottou, L., Bengio, Y., & Haffner, P. (1998) · Proceedings of the IEEE · doi:10.1109/5.726791 · Cited by 58,805 · cited 1×
“MNIST is a well-known data set of 70K 28 x 28 greyscale images of hand-drawn digits [Lec98].”
The Elements of Statistical Learning
Hastie, T., Tibshirani, R., & Friedman, J. (2009) · Springer Series in Statistics · doi:10.1007/978-0-387-84858-7 · Cited by 25,970
Learning Multiple Layers of Features from Tiny Images
Krizhevsky, A. (2024) · doi:10.57702/zp44cu3g · Cited by 23,395
The WEKA data mining software: an update
Hall, M., Frank, E., Holmes, G., Pfahringer, B., Reutemann, P., & Witten, I. H. (2009) · ACM SIGKDD Explorations Newsletter · doi:10.1145/1656274.1656278 · Cited by 17,750 · cited 1×
“The Auto-Weka project [Tho13] was the first to show that an entire library of machine learning approaches (Weka [Hal09] ) can be searched within the scope of a single run of hyperparameter tuning.”
Background(2012) · Cited by 8,009
Practical Bayesian Optimization of Machine Learning Algorithms
Snoek, J., Larochelle, H., & Adams, R. P. (2012) · arXiv · doi:10.48550/arxiv.1206.2944 · Cited by 6,691
Labeled Faces in the Wild: A Database forStudying Face Recognition in Unconstrained Environments
Huang, G. B., Mattar, M., Berg, T. L., & Miller, E. G. (2008) · HAL · Cited by 4,797
(2011) · Cited by 3,939
Multi-column deep neural networks for image classification
Ciresan, D., Meier, U., & Schmidhuber, J. (2012) · 2012 IEEE Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2012.6248110 · Cited by 3,720
Research works printed but not linked: 12
- Bergstra J, 2012, J. Mach. Learn. Res., 13, 281
- Bergstra J, 2011, NIPS, 24, 2546
- Bergstra J, 2013, Proc. ICML
- Bergstra J, 2013, Proc. SciPy 2013, 13
- Bergstra J, 2014, ICML AutoML Workshop
- Ciresan D, 2012, IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 3642
- Domhan T, 2014, ICML AutoML Workshop
- Eggensperger K, 2013, NIPS Workshop on Bayesian Optimization in Theory and Practice
- Komer B, 2014, Proc. SciPy 2014
- Mitchell T, 1996, Newsgroups Data Set, 20
- Pedregosa F, 2011, J. Mach. Learn. Res., 12, 2825
- Snoek J, 2012, Proc. NIPS
Cited by
Larian Studios Dev Team (2024) · doi:10.1145/3292500.3330701 · Cited by 8,618
“Spearmint [2] and GPyOpt use Gaussian Processes, and Hyperopt [1] employs tree-structured Parzen estimator (TPE) [6].”
MethodOn hyperparameter optimization of machine learning algorithms: Theory and practice
Yang, L., & Shami, A. (2020) · Neurocomputing · doi:10.1016/j.neucom.2020.07.061 · Cited by 3,232
Tabular data: Deep learning is not all you need
Shwartz-Ziv, R., & Armon, A. (2022) · Information Fusion · doi:10.1016/j.inffus.2021.11.011 · Cited by 2,172
“To select the model hyperparameters, we used HyperOpt [Bergstra et al., 2015], which uses Bayesian optimization.”
MethodSingle-cell RNA-seq denoising using a deep count autoencoder
Eraslan, G., Simon, L. M., Mircea, M., Mueller, N. S., & Theis, F. J. (2019) · Nature Communications · doi:10.1038/s41467-018-07931-2 · Cited by 1,084
Rahman, A., Srikumar, V., & Smith, A. D. (2018) · Applied Energy · doi:10.1016/j.apenergy.2017.12.051 · Cited by 743
Understanding the diversity of the metal-organic framework ecosystem
Moosavi, S. M., Nandy, A., Jablonka, K. M., Ongari, D., Janet, J. P., Boyd, P. G., Lee, Y., Smit, B., & Kulik, H. J. (2020) · Nature Communications · doi:10.1038/s41467-020-17755-8 · Cited by 622
Big-Data Science in Porous Materials: Materials Genomics and Machine Learning
Jablonka, K. M., Ongari, D., Moosavi, S. M., & Smit, B. (2020) · Chemical Reviews · doi:10.1021/acs.chemrev.0c00004 · Cited by 599
Nanoparticle synthesis assisted by machine learning
Tao, H., Wu, T., Aldeghi, M., Wu, T. C., Aspuru-Guzik, A., & Kumacheva, E. (2021) · Nature Reviews Materials · doi:10.1038/s41578-021-00337-5 · Cited by 545
Neural Networks for the Prediction of Organic Chemistry Reactions
Wei, J. N., Duvenaud, D., & Aspuru-Guzik, A. (2016) · ACS Central Science · doi:10.1021/acscentsci.6b00219 · Cited by 392
Incremental on-line learning: A review and comparison of state of the art algorithms
Losing, V., Hammer, B., & Wersing, H. (2018) · Neurocomputing · doi:10.1016/j.neucom.2017.06.084 · Cited by 382
A Multi-Stream Feature Fusion Approach for Traffic Prediction
Li, Z., Xiong, G., Tian, Y., Lv, Y., Chen, Y., Hui, P., & Su, X. (2022) · IEEE Transactions on Intelligent Transportation Systems · doi:10.1109/tits.2020.3026836 · Cited by 336
Ganesh, A. H., & Xu, B. (2022) · Renewable and Sustainable Energy Reviews · doi:10.1016/j.rser.2021.111833 · Cited by 285
Miltiadous, A., Tzimourta, K. D., Afrantou, T., Ioannidis, P., Grigoriadis, N., Tsalikakis, D. G., Angelidis, P., Tsipouras, M. G., Glavas, E., Giannakeas, N., et al. (2023) · Data · doi:10.3390/data8060095 · Cited by 283
Gearbox Fault Diagnosis Using a Deep Learning Model With Limited Data Sample
Saufi, S. R., Ahmad, Z. A. B., Leong, M. S., & Lim, M. H. (2020) · IEEE Transactions on Industrial Informatics · doi:10.1109/tii.2020.2967822 · Cited by 273
Advanced hyperparameter optimization of deep learning models for wind power prediction
Hanifi, S., Cammarono, A., & Zare-Behtash, H. (2024) · Renewable Energy · doi:10.1016/j.renene.2023.119700 · Cited by 237
“Sequential model-based optimization (SMBO) which is also known as Bayesian optimization, is an effective algorithm for solving the optimization problem of functions with high-dimensional space [6].”
InfluentialMMSplice: modular modeling improves the predictions of genetic variant effects on splicing
Cheng, J., Nguyen, T. Y. D., Cygan, K. J., Çelik, M. H., Fairbrother, W. G., Avsec, Ž., & Gagneur, J. (2019) · Genome Biology · doi:10.1186/s13059-019-1653-z · Cited by 235
Multiobjective tree-structured parzen estimator for computationally expensive optimization problems
Ozaki, Y., Tanigaki, Y., Watanabe, S., & Onishi, M. (2020) · Proceedings of the 2020 Genetic and Evolutionary Computation Conference · doi:10.1145/3377930.3389817 · Cited by 217
“10, which is the default in Optuna [1], and nc = 24 which is the default in both HyperOpt [4] and Optuna.”
BackgroundMethodTemporal convolutional autoencoder for unsupervised anomaly detection in time series
Thill, M., Konen, W., Wang, H., & Bäck, T. (2021) · Applied Soft Computing · doi:10.1016/j.asoc.2021.107751 · Cited by 217
“We tuned he parameters (except for TCN-AE and NuPIC) using the hyperpt library [69].”
Load demand forecasting of residential buildings using a deep learning model
Wen, L., Zhou, K., & Yang, S. (2020) · Electric Power Systems Research · doi:10.1016/j.epsr.2019.106073 · Cited by 214
Vlassis, N. N., & Sun, W. (2021) · Computer Methods in Applied Mechanics and Engineering · doi:10.1016/j.cma.2021.113695 · Cited by 214
Jose, D. M., Vincent, A. M., & Dwarakish, G. S. (2022) · Scientific Reports · doi:10.1038/s41598-022-08786-w · Cited by 213
“The “hyperopt” package in Python was used to implement BHO 65 .”
MethodFully Convolutional Neural Network for Rapid Flood Segmentation in Synthetic Aperture Radar Imagery
Nemni, E., Bullock, J., Belabbes, S., & Bromley, L. (2020) · Remote Sensing · doi:10.3390/rs12162532 · Cited by 209
“In practice, this optimization was carried out by tuning a Tree-structured Parzen Estimator (TPE) [62] as implemented in the hyperopt [63] library thus effectively ’training’ a linear classifier.”
MethodGijsbrechts, J., Boute, R. N., Van Mieghem, J. A., & Zhang, D. J. (2022) · Manufacturing & Service Operations Management · doi:10.1287/msom.2021.1064 · Cited by 203
“We opted for a random search approach as it has several key benefits compared to more complex methods, as also outlined by Bergstra and Bengio [2012] and Bergstra et al. [2015]: (1) simplicity: random search only requires the modeller to define the interval on which one should sample without building an additional opt…”
InfluentialWu, Z., Zhu, M., Kang, Y., Leung, E. L.-H., Lei, T., Shen, C., Jiang, D., Wang, Z., Cao, D., & Hou, T. (2021) · Briefings in Bioinformatics · doi:10.1093/bib/bbaa321 · Cited by 197
Hinchi, A. Z., & Tkiouat, M. (2018) · Procedia Computer Science · doi:10.1016/j.procs.2018.01.106 · Cited by 195
Lewis, J. E., & Kemp, M. L. (2021) · Nature Communications · doi:10.1038/s41467-021-22989-1 · Cited by 188
Hyperparameter optimization in learning systems
Andonie, R. (2019) · Journal of Membrane Computing · doi:10.1007/s41965-019-00023-0 · Cited by 175
“Hyperopt-sklearn has the following implemented solvers [12]: RS, simulated annealing, and Tree-of-Parzen-Estimators.”
MethodZrimec, J., Börlin, C. S., Buric, F., Muhammad, A. S., Chen, R., Siewers, V., Verendel, V., Nielsen, J., Töpel, M., & Zelezniak, A. (2020) · Nature Communications · doi:10.1038/s41467-020-19921-4 · Cited by 174
Gene expression is encoded in all parts of a co-evolving interacting gene regulatory structure
Zrimec, J., Buric, F., Muhammad, A. S., Chen, R., Verendel, V., Töpel, M., & Zelezniak, A. (2019) · doi:10.1101/792531 · Cited by 173
Castro, P. B. D., Terashima, K., Yamamoto, T. D., Hou, Z., Iwasaki, S., Matsumoto, R., Adachi, S., Saito, Y., Song, P., Takeya, H., et al. (2020) · NPG Asia Materials · doi:10.1038/s41427-020-0214-y · Cited by 164
Improved pathogenicity prediction for rare human missense variants
Wu, Y., Liu, H., Li, R., Sun, S., Weile, J., & Roth, F. P. (2021) · The American Journal of Human Genetics · doi:10.1016/j.ajhg.2021.08.012 · Cited by 164
“…settings, we used the following procedure to automatically determine the final hyperparameter values: (1) re-order all trials from Hyper-Opt 54–56 by mean AUBPRC on training sets (averaged over ten training sets) from low to high, (2) calculate a moving window (we used window size 30 for…”
MethodInfluentialTang, B., Kramer, S. T., Fang, M., Qiu, Y., Wu, Z., & Xu, D. (2020) · Journal of Cheminformatics · doi:10.1186/s13321-020-0414-z · Cited by 163
Multiobjective Tree-Structured Parzen Estimator
Ozaki, Y., Tanigaki, Y., Watanabe, S., Nomura, M., & Onishi, M. (2022) · Journal of Artificial Intelligence Research · doi:10.1613/jair.1.13188 · Cited by 162
“…Tree-structured Parzen Estimator (TPE) (Bergstra et al., 2011; Bergstra, Yamins, & Cox, 2013), which is known for the standard solver of Hyperopt (Bergstra, Komer, Eliasmith, Yamins, & Cox, 2015) and Optuna (Akiba, Sano, Yanase, Ohta, & Koyama, 2019) – open-source software for HPO that are…”
BackgroundMethodOptimizing Survival Analysis of XGBoost for Ties to Predict Disease Progression of Breast Cancer
Liu, P., Fu, B., Yang, S. X., Deng, L., Zhong, X., & Zheng, H. (2021) · IEEE Transactions on Biomedical Engineering · doi:10.1109/tbme.2020.2993278 · Cited by 159
“In the experiment, hyper-parameters are tuned by the scientific Bayesian hyper-parameter optimization algorithm, which is running in the python package hyperopt [21], [22].”
MethodTurner, R., Eriksson, D., McCourt, M., Kiili, J., Laaksonen, E., Xu, Z., & Guyon, I. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2104.10201 · Cited by 158
“The starter kit provided examples using the default configurations of several different optimization packages: Hyperopt [5], Nevergrad [54], OpenTuner [1], pySOT [14], Scikit-Optimize [30], and TuRBO [15], which serve as baselines.”
MethodEffectiveness of molecular fingerprints for exploring the chemical space of natural products
Boldini, D., Ballabio, D., Consonni, V., Todeschini, R., Grisoni, F., & Sieber, S. A. (2024) · Journal of Cheminformatics · doi:10.1186/s13321-024-00830-3 · Cited by 97
Triguero, I., Molina, D., Poyatos, J., Del Ser, J., & Herrera, F. (2024) · Information Fusion · doi:10.1016/j.inffus.2023.102135 · Cited by 90
Predicting and characterizing a cancer dependency map of tumors with deep learning
Chiu, Y.-C., Zheng, S., Wang, L.-J., Iskra, B. S., Rao, M. K., Houghton, P. J., Huang, Y., & Chen, Y. (2021) · Science Advances · doi:10.1126/sciadv.abh1275 · Cited by 84
“Hyperas is a grid-searching algorithm that searches a prefixed parameter space by a fixed number of parameter combinations using the Hyperopt optimization library (67).”
MethodRobust and accurate decoding of hand kinematics from entire spiking activity using deep learning
Ahmadi, N., Constandinou, T. G., & Bouganis, C.-S. (2021) · Journal of Neural Engineering · doi:10.1088/1741-2552/abde8a · Cited by 69
“Bayesian optimisation library called Hyperopt93 was used for the hyperparameter optimisation which was conducted separately for each type of neural signal and run for 300 iterations.”
MethodMachine learning in materials design: Algorithm and application*
Song, Z., Chen, X., Meng, F., Cheng, G., Wang, C., Sun, Z., & Yin, W.-J. (2020) · Chinese Physics B · doi:10.1088/1674-1056/abc0e3 · Cited by 63
Anomaly Detection in Asset Degradation Process Using Variational Autoencoder and Explanations
Jakubowski, J., Stanisz, P., Bobek, S., & Nalepa, G. J. (2021) · Sensors · doi:10.3390/s22010291 · Cited by 56
“The optimization of the model is done with the use of hyperopt [41] library using Bayesian Optimization with the Tree-structured Parzen Estimator.”
MethodTrapotsi, M.-A., Mouchet, E., Williams, G., Monteverde, T., Juhani, K., Turkki, R., Miljković, F., Martinsson, A., Mervin, L., Pryde, K. R., et al. (2022) · ACS Chemical Biology · doi:10.1021/acschembio.2c00076 · Cited by 51
Ullah, A., & Dral, P. O. (2022) · Nature Communications · doi:10.1038/s41467-022-29621-w · Cited by 51
Gesture recognition with the linear optical sensor and recurrent neural networks
Czuszynski, K., Ruminski, J., & Kwasniewska, A. (2018) · IEEE Sensors Journal · doi:10.1109/jsen.2018.2834968 · Cited by 36
Univariate time series classification using information geometry
Sun, J., Yang, Y., Liu, Y., Chen, C., Rao, W., & Bai, Y. (2019) · Pattern Recognition · doi:10.1016/j.patcog.2019.05.040 · Cited by 31
A machine learning approach using autoencoders to perform quality control on meteorological data
Spohn, T. K., Walsh, E., Horan, K., O’Donoghue, J., Charnecki, T., Haslam, M., & Gallagher, S. (2026) · Environmental Data Science · doi:10.1017/eds.2026.10030 · Cited by 1
“The algorithm hyperparameters were tuned using hyperopt (Bergstra et al., 2015) in MLflow (2025) to determine the best batch size and number of epochs, and latent dimensions for the autoencoders.”
Chen, Q., & Chen, L. (2026) · Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1 · doi:10.1145/3770854.3780173
Metadata
- Authors
- Bergstra, J., Komer, B., Eliasmith, C., Yamins, D., & Cox, D. D.
- Venue
- Computational Science & Discovery
- Publisher
- IOP Publishing
- Published
- 2015-07-28
- Volume
- 8
- Issue
- 1
- Pages
- 014008
- ISSN
- 1749-4680 (ISSN-L)
- 1749-4699
- OpenAlex
- W1437335841
- Cited by
- 1,010
- References
- 21
- FWCI
- 15.02
- Type
- journal article
- Language
- en
- Open access
- hybrid
- Licence
- iopscience.iop.org/info/page/text-and-data-mining (tdm)
- iopscience.iop.org/page/copyright (vor)
- creativecommons.org/licenses/by-nc-nd/3.0 (am, 366 d)
- Funders
- NSF Office of the Director (0963668)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.