$npx skillfedfor your agent

hyperopt

Distributed Asynchronous Hyperparameter Optimization

Worth itPyPI Software DevelopmentReleased Jul 20262.9M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — hyperopt-0.3.0-py3-none-any.whl
v0.3.0 · released 2026-07-24 · Python >=3.10 · 6 runtime deps: cloudpickle, importlib-resources, networkx, numpy, scipy, tqdm

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

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
Same gist for agents: .md · .json

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.

Worth 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

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
cloudpickleimportlib-resourcesnetworkxnumpyscipytqdm
MaintenanceActively maintained 21 days since the last release
Last repo commit
First released
Downloads2,851,699 / month, #2,860 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
hyperparameter optimizationbayesian optimization libraryparallel hyperparameter tuningTPE algorithm implementationmodel selection searchdistributed optimization pythonhyperparameter search space
Topics
bayesian-optimizationhyperparameter-tuningdistributed-computing
PyPI keywords
Bayesian optimizationhyperparametermodel selection

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also optuna · bayesian-optimization · ConfigSpace · ax-platform · keras-tuner · scikit-optimize · botorch · pyannote-pipeline · hydra-optuna-sweeper · sweeps