trevorstephens/gplearn

Genetic Programming in Python, with a scikit-learn inspired API

79
/ 100
Verified

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.

Maintenance 10 / 25
Adoption 20 / 25
Maturity 25 / 25
Community 24 / 25

How are scores calculated?

Stars

1,819

Forks

319

Language

Python

License

BSD-3-Clause

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.