Skip to main content

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

Project description

Version License Documentation Status Codacy Badge

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

#Welcome to gplearn-internal! (Rick Sanchez version) is a new math version of gplearn! Use GPTool for experimentation fast.

gplearn implements Genetic Programming in Python, with a scikit-learn inspired and compatible API.

While Genetic Programming (GP) can be used to perform a very wide variety of tasks, gplearn is purposefully constrained to solving symbolic regression problems. This is motivated by the scikit-learn ethos, of having powerful estimators that are straight-forward to implement.

Symbolic regression is a machine learning technique that aims to identify an underlying mathematical expression that best describes a relationship. It begins by building a population of naive random formulas to represent a relationship between known independent variables and their dependent variable targets in order to predict new data. Each successive generation of programs is then evolved from the one that came before it by selecting the fittest individuals from the population to undergo genetic operations.

gplearn retains the familiar scikit-learn fit/predict API and works with the existing scikit-learn pipeline and grid search modules. The package attempts to squeeze a lot of functionality into a scikit-learn-style API. While there are a lot of parameters to tweak, reading the documentation should make the more relevant ones clear for your problem.

gplearn supports regression through the SymbolicRegressor, binary classification with the SymbolicClassifier, as well as transformation for automated feature engineering with the SymbolicTransformer, which is designed to support regression problems, but should also work for binary classification.

gplearn is built on scikit-learn and a fairly recent copy (0.20.0+) is required for installation. If you come across any issues in running or installing the package, please submit a bug report.


Rick’s here on… euhhh say ???

Party night is code in dark room, in a location outside of time ! Life is a little bit and insignifiant part of ocean of shit… So cheat with this ocean and surf on wave of data science ! Nevermind if life is difficult, just consider if you can do, do it, for fun, learn, explore, and don’t forget if you are not happy and if you think about killing yourself: YOU ARE NOT ALONE IN THIS CASE ON EARTH ! Take care.

An important thing is never give up. -Rick Sanchez



For install with pip from this git repository

<https://github.com/LaGvidilo/gplearn/blob/master/INSTALL.md>

Codacy Badge

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gplearn_internal-0.5.9-py3.7.egg (87.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page