keras-tuner
A Hyperparameter Tuning Library for Keras
Decision gist · record as of 2026-08-14
Yes, with conditions. KerasTuner is a permissively licensed tool for automating hyperparameter search in Keras models, with low install friction and no known vulnerabilities. However, its maintenance status is aging (276 days since last release), so verify compatibility with your keras version and check for any recent issues before committing to production workflows. It is well-suited for research, prototyping, and systematic tuning tasks.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+ and a compatible version of keras.
- Low install friction with a pure-Python wheel.
- The package depends on keras, packaging, requests, kt-legacy, grpcio, and protobuf.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute the package freely in commercial and private projects without restriction.
last release 2025-11-11 (276 days) · last repo commit 2025-12-01 · 2,923 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 180,913 downloads/mo, #10,137 on PyPI
Alternatives
Verify before relying
pip install keras-tuner
import keras_tuner
from keras import Sequential, layers
def build_model(hp):
model = Sequential()
model.add(layers.Dense(hp.Choice('units', [8, 16, 32]), activation='relu'))
model.add(layers.Dense(1, activation='relu'))
model.compile(loss='mse')
return model
tuner = keras_tuner.RandomSearch(build_model, objective='val_loss', max_trials=5)
tuner.search(x_train, y_train, epochs=5, validation_data=(x_val, y_val))
best_model = tuner.get_best_models()[0]- Whether aging maintenance status (276 days since last release) affects stability or feature completeness.
- Performance characteristics and scalability limits for large hyperparameter search spaces.
- Specific keras and protobuf version compatibility requirements.
What it is and what it does
KerasTuner is a hyperparameter optimization framework designed to automate the search for optimal model configurations in Keras. It provides a define-by-run syntax where you write a function that builds your model and uses the `hp` argument to declare which hyperparameters to tune, then delegates the search to one of several built-in algorithms: Bayesian Optimization, Hyperband, or Random Search. The framework handles the trial management, evaluation, and model selection, returning the best-performing model based on your chosen objective metric.
The package integrates with keras as its primary dependency and relies on packaging, requests, kt-legacy, grpcio, and protobuf for configuration management, API communication, and serialization. KerasTuner is intended for researchers and practitioners who need to systematically explore hyperparameter spaces without manually implementing search logic, and it is designed to be extensible for experimenting with custom search algorithms.
Use it for
- Automatically find optimal layer sizes, learning rates, and activation functions for a model without manual trial-and-error.
- Compare multiple search algorithms (Bayesian, Hyperband, Random) on the same model to identify which converges fastest.
- Scale hyperparameter search across distributed systems using the framework's built-in support for parallel trials.
- Experiment with new search algorithms by extending KerasTuner's base classes for research or domain-specific optimization.
- Reduce model development time by systematically tuning a large number of hyperparameters in a single reproducible workflow.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
KerasTuner is a permissively licensed tool for automating hyperparameter search in Keras models, with low install friction and no known vulnerabilities. However, its maintenance status is aging (276 days since last release), so verify compatibility with your keras version and check for any recent issues before committing to production workflows. It is well-suited for research, prototyping, and systematic tuning tasks.
Install
keras-tuner on PyPI
Before you install
Low install friction with a pure-Python wheel. The package depends on keras, packaging, requests, kt-legacy, grpcio, and protobuf. Maintenance status is aging—last release was 276 days ago, though the repository remains active with a recent commit on 2025-12-01.
Requires Python 3.8+ and a compatible version of keras.
License in practice
Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute the package freely in commercial and private projects without restriction.
Quickstart
pip install keras-tuner
import keras_tuner
from keras import Sequential, layers
def build_model(hp):
model = Sequential()
model.add(layers.Dense(hp.Choice('units', [8, 16, 32]), activation='relu'))
model.add(layers.Dense(1, activation='relu'))
model.compile(loss='mse')
return model
tuner = keras_tuner.RandomSearch(build_model, objective='val_loss', max_trials=5)
tuner.search(x_train, y_train, epochs=5, validation_data=(x_val, y_val))
best_model = tuner.get_best_models()[0]
Verify before relying
- Whether aging maintenance status (276 days since last release) affects stability or feature completeness.
- Performance characteristics and scalability limits for large hyperparameter search spaces.
- Specific keras and protobuf version compatibility requirements.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packageskeraspackagingrequestskt-legacygrpcioprotobuf |
| Maintenance | Aging 276 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 180,913 / month, #10,137 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: Science/ResearchOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Software Development |
Evidence: keras_tuner-1.4.8-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 › “hyperparameter tuning keras”
- keras-tunerKerasTuner automates hyperparameter optimization for Keras models…
- pygadPyGAD is a Python library for building and running genetic algorithms…
- kt-legacyProvides the deprecated `kerastuner` import name for Keras Tuner,…
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 ConfigSpace · kt-legacy · optuna · sweeps · pyannote-pipeline · hyperopt · FLAML · keras-hub · ax-platform · bayesian-optimization