evo-hp - Evolutionary Hyperparameter Optimizer
A scikit-learn-compatible hyperparameter optimizer for tabular data,
powered by DEAP. evo-hp tunes the
hyperparameters of any scikit-learn estimator with a Genetic Algorithm over
mixed search spaces (integers, floats, log-scale, categoricals, booleans and
conditional parameters), complementing evo-gafs (feature
selection) and evo-gpfe (feature engineering) upstream, and
evo-ens (ensemble construction) downstream.
Part of the evo-suite family (import name: evo_hp).
Documentation: https://evo-suite.readthedocs.io/
Why evo-hp?
| Capability | evo-hp |
|---|---|
| Mixed search spaces natively: int, float (linear/log-scale), categorical, boolean, conditional | Yes |
Uniform [0, 1]^n gene representation: standard DEAP operators (cxUniform, mutGaussian) across every type |
Yes |
| Evaluation cache keyed on decoded hyperparameters — population convergence becomes cheap cache hits | Yes |
Native scikit-learn EvoHPClassifier / EvoHPRegressor, usable in a Pipeline and tunable with GridSearchCV |
Yes |
| Multi-objective NSGA-II mode exposing the full score/complexity Pareto front | Yes |
| 13 built-in predefined search spaces (RandomForest, GradientBoosting, SVC/SVR, LogisticRegression, Ridge, Lasso, ElasticNet, KNN, DecisionTree) | Yes |
Built-in multi-estimator EvoHPBenchmarkRunner |
Yes |
Installation
pip install evo-hp # core
pip install "evo-hp[viz]" # + matplotlib for the plotting helpers
Quickstart
from sklearn.datasets import load_breast_cancer
from sklearn.ensemble import RandomForestClassifier
from evo_hp import EvoHPClassifier, EvoHPConfig
X, y = load_breast_cancer(return_X_y=True, as_frame=True)
clf = EvoHPClassifier(
estimator=RandomForestClassifier(random_state=42),
param_space="rf_clf",
config=EvoHPConfig(population_size=40, n_generations=30, verbose=False),
)
clf.fit(X, y)
print(clf.result_.summary())
print(clf.best_params_)
EvoHPRegressor follows the same API for regression targets, scoring
with R² by default. Define a custom search space with Int/Float/Cat/
Bool/Cond instead of a predefined name for full control:
from sklearn.svm import SVC
from evo_hp import EvoHPClassifier, Float, Cat, Cond, Int
space = [
Float("C", 0.001, 1000.0, log=True),
Cat("kernel", ["rbf", "linear", "poly", "sigmoid"]),
Float("gamma", 1e-5, 10.0, log=True),
Cond("degree", Int("degree", 2, 5), "kernel", ["poly"], default=3),
]
clf = EvoHPClassifier(estimator=SVC(max_iter=10_000), param_space=space)
Since evo-hp does not transform X, it slots in naturally as the final
step of a Pipeline — including right after evo-gafs's feature selector,
mirroring the suite's intended pipeline position
(evoimp -> gpfe -> gafs -> evohp -> evoens):
from sklearn.pipeline import Pipeline
from evo_gafs import GAFeatureSelector
from evo_hp import EvoHPClassifier
pipe = Pipeline([
("select", GAFeatureSelector(estimator=RandomForestClassifier(random_state=42))),
("tune", EvoHPClassifier(estimator=RandomForestClassifier(random_state=42), param_space="rf_clf")),
])
pipe.fit(X, y)
Documentation & examples
- Full documentation (user guide + API reference): https://evo-suite.readthedocs.io/
- Runnable examples: the repository's
examples/evo-hp/directory.
Citation
@software{evo_hp,
author = {Skrauba, Axel},
title = {evo-hp: Evolutionary Hyperparameter Optimizer for tabular data},
year = {2026},
version = {0.1.0},
url = {https://github.com/AxelSkrauba/evo-suite}
}
License
Metadata
Release files for evo-hp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evo_hp-0.1.0.tar.gz | 25.6 kB | With provenance | Details for evo_hp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evo_hp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for evo_hp-0.1.0-py3-none-any.whl |
Total release size: 53.8 kB
Release files / evo_hp-0.1.0.tar.gz
| Download URL | evo_hp-0.1.0.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82fa321203d5f76f4b59273b0ae39f3c6cd36e8e8faaf02d5330defd083decec
|
|
BLAKE2b-256 checksum How to use checksums |
69c5ad72ca6ae2d4a409344e6f843486574351f5daa7c068b063d9e14ffa0cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logRelease files / evo_hp-0.1.0-py3-none-any.whl
| Download URL | evo_hp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5f380dc1c12d611b822f1bd5fb411bc961894ac7426f05a99caf8049eef8d92
|
|
BLAKE2b-256 checksum How to use checksums |
060194c15ea231308bebaaa375988a0f0bac11c6ebe5e06b25c9506c0508e1f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logSecurity for evo-hp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for evo_hp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.