trevorstephens/gplearn
Genetic Programming in Python, with a scikit-learn inspired API
Evolves mathematical expressions through genetic algorithms to discover symbolic regression models, supporting regression, binary classification, and automated feature engineering. Integrates seamlessly with scikit-learn's pipeline and grid search utilities via standard fit/predict API. Uses population-based selection and genetic operations (crossover, mutation) to iteratively improve program fitness against target variables.
1,819 stars and 19,896 monthly downloads. Available on PyPI.
Stars
1,819
Forks
319
Language
Python
License
BSD-3-Clause
Category
Last pushed
Jan 10, 2026
Monthly downloads
19,896
Commits (30d)
0
Dependencies
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/trevorstephens/gplearn"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related frameworks
google/pyglove
Manipulating Python Programs
nnaisense/evotorch
Advanced evolutionary computation library built directly on top of PyTorch, created at NNAISENSE.
guofei9987/scikit-opt
Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization...
alirezamika/evostra
A fast Evolution Strategy implementation in Python
esa/pagmo2
A C++ platform to perform parallel computations of optimisation tasks (global and local) via the...