Skip to main content

Genetic Programming Feature Engineer — a scikit-learn-compatible symbolic feature constructor for tabular data (evo-suite)

Project description

evo-gpfe - Genetic Programming Feature Engineer

PyPI Python versions Docs CI License: MIT

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

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evo_gpfe-0.1.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evo_gpfe-0.1.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

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

Hashes for evo_gpfe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9f379975302f4dbf8bc76b346e9a34b9803cc868d2be1e924dfbd6798ff956e
MD5 98cb490a7c969c84eb36c1fa7ead6214
BLAKE2b-256 92c1b9c6d4ebd4f6a52fcf22d902be73aff21ef3e731197ed2b90fe5537808d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for evo_gpfe-0.1.0.tar.gz:

Publisher: publish.yml on AxelSkrauba/evo-suite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for evo_gpfe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1181172787b845d776e005e4170a1269236d13081370be1a4450ed2caba418b9
MD5 165ab1c656fc7f3378e3e744ce7280d9
BLAKE2b-256 87fdaec8138328d6dcf519bedde85ef2f3e651453c161b99cdf43c96bb625485

See more details on using hashes here.

Provenance

The following attestation bundles were made for evo_gpfe-0.1.0-py3-none-any.whl:

Publisher: publish.yml on AxelSkrauba/evo-suite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page