This Python 3 code is a simple implementation of genetic programming for symbolic regression, and has been developed for educational purposes.
numpy
& sklearn
. The file test.py
shows an example of usage.
You can install it with pip using python3 -m pip install --user simplegp
, or locally by downloading the code and running python3 setup.py install --user
.
If you use this code, please support our research by citing one (or more) of our works for which this code was made or adopted:
M. Virgolin, A. De Lorenzo, E. Medvet, F. Randone. "Learning a Formula of Interpretability to Learn Interpretable Formulas". Parallel Problem Solving from Nature -- PPSN XVI, pp. 79--93, Springer (2020). (arXiv preprint arXiv:2004.11170)
M. Virgolin. "Genetic Programming is Naturally Suited to Evolve Bagging Ensembles". arXiv preprint arXiv:2009.06037v5 (2021)
For a multi-objective version, see pyNSGP.