#10 · Primary category: Optimization & Heuristic Algorithms
gplearn
Genetic Programming in Python, with a scikit-learn inspired API
Project last updated:08/14/26
GitHub Stars
1.9K
Forks
326
Contributors
13
License
BSD-3-Clause
Why we included this project
Most ML libraries hand you a weight matrix and call it a day. gplearn takes a different route: it evolves actual mathematical expressions from your features using genetic programming, covering symbolic regression, classification, and feature transformation behind the familiar scikit-learn fit/predict interface. That means it drops into existing pipelines and grid searches without a rewrite. The payoff is a readable formula describing the relationship between inputs and outputs, which matters in engineering, finance, and scientific work where stakeholders want to see and audit the model. The SymbolicTransformer is also handy for automated feature engineering, since evolution can surface nonlinear combinations you would not have thought to build by hand. If you already know scikit-learn conventions, the learning curve is short, and the docs cover the evolutionary parameters well enough to tune them for your problem.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
scikit-opt
Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization Algorithm,Immune Algorithm, Artificial Fish Swarm Algorithm, Differential Evolution and TSP(Traveling salesman)
ceres-solver
A large scale non-linear optimization library
FLAML
A fast library for AutoML and tuning. Join our Discord: https://discord.gg/Cppx2vSPVP.
sunfish
Sunfish: a Python Chess Engine in 111 lines of code
POT
POT : Python Optimal Transport