trevorstephens/gplearn
Genetic Programming in Python, with a scikit-learn inspired API
This tool helps data scientists and machine learning engineers automatically discover the mathematical formulas that describe relationships within their data. You input your datasets with known independent and dependent variables, and it outputs a mathematical expression that predicts new data. It's designed for those who want to find underlying data relationships without manually testing many equations.
1,819 stars. Available on PyPI.
Use this if you need to find an unknown mathematical model that best explains the relationships within your numerical data for prediction or insight.
Not ideal if you're looking for a general-purpose genetic programming library for tasks beyond symbolic regression or classification.
Stars
1,819
Forks
319
Language
Python
License
BSD-3-Clause
Category
Last pushed
Jan 10, 2026
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.
Related frameworks
google/pyglove
Manipulating Python Programs
guofei9987/scikit-opt
Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization...
nnaisense/evotorch
Advanced evolutionary computation library built directly on top of PyTorch, created at NNAISENSE.
esa/pagmo2
A C++ platform to perform parallel computations of optimisation tasks (global and local) via the...
alirezamika/evostra
A fast Evolution Strategy implementation in Python