What is gplearn and Symbolic Regression?
maingplearn is an extension of the scikit-learn library designed to perform Genetic Programming (GP) via symbolic regression.
Symbolic regression is a machine learning technique that identifies the underlying mathematical expression describing the relationship between independent variables and dependent variable targets. It works by:
- Building a population of random formulas.
- Evolving these formulas over successive generations.
- Selecting the 'fittest' individuals to undergo genetic operations (breeding, mutation, etc.) to move closer to the target function.
Because GP is a stochastic optimization process, you can control the randomness of the evolution using the random_state parameter in the estimator.