hyperopt
Distributed Asynchronous Hyperparameter Optimization
Decision gist · record as of 2026-08-14
Yes. Hyperopt is actively maintained, has no known vulnerabilities, installs with low friction, and is well-suited for anyone doing hyperparameter optimization beyond simple grid or random search. The TPE algorithm is more sample-efficient than random search for most problems. The BSD-3-Clause license poses no restrictions. Start here if you need Bayesian optimization without the overhead of setting up a full Gaussian process library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a pure-Python wheel.
- Actively maintained with a release 21 days ago and a recent commit on 2026-08-10.
- Six runtime dependencies (cloudpickle, importlib-resources, networkx, numpy, scipy, tqdm) are all stable, widely-used libraries.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute hyperopt freely in commercial and open-source projects provided you include the license notice.
last release 2026-07-24 (21 days) · last repo commit 2026-08-10 · 7,598 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,851,699 downloads/mo, #2,860 on PyPI
Alternatives
Verify before relying
pip install hyperopt
from hyperopt import hp, fmin, tpe, space_eval
def objective(args):
case, val = args
return val if case == 'case 1' else val ** 2
space = hp.choice('a', [('case 1', 1 + hp.lognormal('c1', 0, 1)), ('case 2', hp.uniform('c2', -10, 10))])
best = fmin(objective, space, algo=tpe.suggest, max_evals=100)
print(space_eval(space, best))- Whether optional extras (SparkTrials, MongoTrials, ATPE) require additional system dependencies beyond what pip installs
- Performance characteristics and scalability limits for very large search spaces or high-dimensional problems
- How well the package handles edge cases like conditional dimensions with many branches
What it is and what it does
Hyperopt is a Python library for optimizing over complex, mixed-type search spaces—those containing real-valued, discrete, and conditional parameters. It implements three algorithms: Random Search, Tree of Parzen Estimators (TPE), and Adaptive TPE. The library is designed for both serial optimization on a single machine and parallel optimization across multiple workers using Apache Spark or MongoDB as backends.
You define an objective function to minimize, specify a search space using hyperopt's domain language (hp.choice, hp.uniform, hp.lognormal, etc.), and call fmin() with your chosen algorithm. Hyperopt then explores the space, returning the best parameters found. It's commonly used for tuning machine learning model hyperparameters, though it applies to any optimization problem over awkward search spaces.
Use it for
- Tune scikit-learn or neural network hyperparameters (learning rate, regularization, layer sizes) to minimize validation loss
- Optimize conditional configurations where some parameters only apply under certain choices (e.g., different solvers with different hyperparameters)
- Parallelize hyperparameter search across a Spark cluster or MongoDB-backed worker pool for large-scale experiments
- Benchmark different algorithms (Random Search vs. TPE) on the same search space to understand their relative efficiency
- Explore high-dimensional spaces where grid search or random search becomes prohibitively expensive
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Hyperopt is actively maintained, has no known vulnerabilities, installs with low friction, and is well-suited for anyone doing hyperparameter optimization beyond simple grid or random search. The TPE algorithm is more sample-efficient than random search for most problems. The BSD-3-Clause license poses no restrictions. Start here if you need Bayesian optimization without the overhead of setting up a full Gaussian process library.
Install
hyperopt on PyPI
Before you install
Low friction install with a pure-Python wheel. Actively maintained with a release 21 days ago and a recent commit on 2026-08-10. Six runtime dependencies (cloudpickle, importlib-resources, networkx, numpy, scipy, tqdm) are all stable, widely-used libraries.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute hyperopt freely in commercial and open-source projects provided you include the license notice.
Quickstart
pip install hyperopt
from hyperopt import hp, fmin, tpe, space_eval
def objective(args):
case, val = args
return val if case == 'case 1' else val ** 2
space = hp.choice('a', [('case 1', 1 + hp.lognormal('c1', 0, 1)), ('case 2', hp.uniform('c2', -10, 10))])
best = fmin(objective, space, algo=tpe.suggest, max_evals=100)
print(space_eval(space, best))
Verify before relying
- Whether optional extras (SparkTrials, MongoTrials, ATPE) require additional system dependencies beyond what pip installs
- Performance characteristics and scalability limits for very large search spaces or high-dimensional problems
- How well the package handles edge cases like conditional dimensions with many branches
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagescloudpickleimportlib-resourcesnetworkxnumpyscipytqdm |
| Maintenance | Actively maintained 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,851,699 / month, #2,860 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Software Development |
Evidence: hyperopt-0.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “parallel hyperparameter tuning”
- hyperoptHyperopt performs serial and parallel hyperparameter optimization…
- spark-sklearnDistributes scikit-learn model training and hyperparameter search…
- dask-mlDask-ML provides distributed and parallel machine learning by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also optuna · bayesian-optimization · ConfigSpace · ax-platform · keras-tuner · scikit-optimize · botorch · pyannote-pipeline · hydra-optuna-sweeper · sweeps