Genetic Programming Feature Engineer — a scikit-learn-compatible symbolic feature constructor for tabular data (evo-suite)
Project description
evo-gpfe - Genetic Programming Feature Engineer
A scikit-learn-compatible symbolic feature constructor for tabular data,
powered by DEAP. evo-gpfe evolves expression
trees that combine the original features into new, informative ones,
complementing evo-gafs (which selects among existing
features).
Part of the evo-suite family (import name: evo_gpfe).
Documentation: https://evo-suite.readthedocs.io/
Why evo-gpfe?
| Capability | evo-gpfe |
|---|---|
| Sequential hall-of-fame strategy: relevance minus redundancy minus parsimony | Yes |
| Protected primitives (safe division, log, sqrt, ...) so any random tree evaluates | Yes |
Multiple relevance metrics: mutual_info, correlation, spearman, model_score |
Yes |
| Anti-bloat: static tree-height limit and a parsimony penalty | Yes |
Native scikit-learn fit/transform/get_feature_names_out, usable in a Pipeline |
Yes |
Built-in multi-dataset GPBenchmarkRunner |
Yes |
Installation
pip install evo-gpfe # core
pip install "evo-gpfe[viz]" # + matplotlib for the plotting helpers
Quickstart
from sklearn.datasets import load_diabetes
from evo_gpfe import GPFeatureEngineer, GPConfig
X, y = load_diabetes(return_X_y=True, as_frame=True)
engineer = GPFeatureEngineer(
config=GPConfig(population_size=80, n_generations=20, n_features_to_generate=3, verbose=False)
)
engineer.fit(X, y)
print(engineer.summary())
X_augmented = engineer.transform(X)
print("Output features:", list(engineer.get_feature_names_out()))
The GP-then-GA combo
evo-gpfe and evo-gafs are independent but complementary: construct new
features with GP, then select the best subset (original + generated) with GA.
from evo_gafs import GAFeatureSelector, GAConfig
X_aug = engineer.fit_transform(X, y)
selector = GAFeatureSelector(estimator=..., feature_names=list(engineer.get_feature_names_out()))
selector.fit(X_aug, y)
See 06_gp_then_ga_pipeline.py in the repository's examples/evo-gpfe/
directory for the full example.
Documentation & examples
- Full documentation (user guide + API reference): https://evo-suite.readthedocs.io/
- Runnable examples: the repository's
examples/evo-gpfe/directory.
Citation
@software{evo_gpfe,
author = {Skrauba, Axel},
title = {evo-gpfe: Genetic Programming Feature Engineer for tabular data},
year = {2026},
version = {0.1.0},
url = {https://github.com/AxelSkrauba/evo-suite}
}
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file evo_gpfe-0.1.0.tar.gz.
File metadata
- Download URL: evo_gpfe-0.1.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9f379975302f4dbf8bc76b346e9a34b9803cc868d2be1e924dfbd6798ff956e
|
|
| MD5 |
98cb490a7c969c84eb36c1fa7ead6214
|
|
| BLAKE2b-256 |
92c1b9c6d4ebd4f6a52fcf22d902be73aff21ef3e731197ed2b90fe5537808d5
|
Provenance
The following attestation bundles were made for evo_gpfe-0.1.0.tar.gz:
Publisher:
publish.yml on AxelSkrauba/evo-suite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
evo_gpfe-0.1.0.tar.gz -
Subject digest:
b9f379975302f4dbf8bc76b346e9a34b9803cc868d2be1e924dfbd6798ff956e - Sigstore transparency entry: 2190583701
- Sigstore integration time:
-
Permalink:
AxelSkrauba/evo-suite@a0fa59d7fcc516085756f0f30f42e540f05e6001 -
Branch / Tag:
refs/tags/evo-gpfe-v0.1.0 - Owner: https://github.com/AxelSkrauba
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0fa59d7fcc516085756f0f30f42e540f05e6001 -
Trigger Event:
push
-
Statement type:
File details
Details for the file evo_gpfe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: evo_gpfe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1181172787b845d776e005e4170a1269236d13081370be1a4450ed2caba418b9
|
|
| MD5 |
165ab1c656fc7f3378e3e744ce7280d9
|
|
| BLAKE2b-256 |
87fdaec8138328d6dcf519bedde85ef2f3e651453c161b99cdf43c96bb625485
|
Provenance
The following attestation bundles were made for evo_gpfe-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on AxelSkrauba/evo-suite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
evo_gpfe-0.1.0-py3-none-any.whl -
Subject digest:
1181172787b845d776e005e4170a1269236d13081370be1a4450ed2caba418b9 - Sigstore transparency entry: 2190583713
- Sigstore integration time:
-
Permalink:
AxelSkrauba/evo-suite@a0fa59d7fcc516085756f0f30f42e540f05e6001 -
Branch / Tag:
refs/tags/evo-gpfe-v0.1.0 - Owner: https://github.com/AxelSkrauba
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0fa59d7fcc516085756f0f30f42e540f05e6001 -
Trigger Event:
push
-
Statement type: