trevorstephens/gplearn
Genetic Programming in Python, with a scikit-learn inspired API
What it solves
It provides a way to find mathematical expressions that describe the relationship between variables. Instead of traditional machine learning models that are "black boxes," this tool uses symbolic regression to discover a readable formula that best fits the data.
How it works
The library implements Genetic Programming (GP). It starts with a population of random mathematical formulas. It then evolves these formulas over multiple generations, selecting the fittest individuals based on their performance and applying genetic operations to create new, improved versions until an optimal expression is found.
Who it’s for
Data scientists and machine learning practitioners who use the scikit-learn ecosystem and want to perform symbolic regression, binary classification, or automated feature engineering.
Highlights
- Scikit-learn compatible API using the familiar
fit/predict pattern.
- Supports symbolic regression via the
SymbolicRegressor.
- Supports binary classification via the
SymbolicClassifier.
- Enables automated feature engineering through the
SymbolicTransformer.
- Integrates with scikit-learn pipelines and grid search modules.
Related
- Project
feature-engine/feature_engineA Python library providing Scikit-learn compatible transformers for comprehensive feature engineering and selection to improve machine learning model performance.
- Project
rodrigo-arenas/Sklearn-genetic-optsklearn-genetic-opt is a scikit-learn-compatible library that uses genetic algorithms (evolutionary search) to tune hyperparameters (`GASearchCV`) and select features (`GAFeatureSelectionCV`). It supports mixed parameter types, early stopping, adaptive schedules, history/plots, MLflow tracking, and parallel execution. Use it when you can afford several generations of cross-validated evaluations and have mixed or interacting parameters; avoid it for tiny grids, very cheap fits, or when you need a fast baseline or distributed/conditional optimization.
- Project
astroautomata/SymbolicRegression.jlSymbolicRegression.jl is a Julia package for symbolic regression: it automatically searches for symbolic expressions (like 2*cos(23.5*a) - b^2) that fit given data, balancing accuracy and complexity. It provides both a high-level regression interface and a low-level search API, and integrates with the MLJ ecosystem.
- Project
google/pygloveA symbolic programming library for Python that enables the manipulation and automatic search of Python programs, commonly used for AutoML and evolutionary computing.
- Project
skforecast/skforecastSkforecast is a Python library that provides a unified API for time series forecasting, allowing users to train, tune, and backtest various models—from machine learning and statistical methods to foundation models—using a consistent workflow.