Skip to main content

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

Project description

Version License Documentation Status Test Status Test Coverage Code Health

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

Welcome to gplearn!

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 (1.0.2+) is required for installation. If you come across any issues in running or installing the package, please submit a bug report.

Project details


Download files

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

Source Distribution

gplearn-0.4.2.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

gplearn-0.4.2-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file gplearn-0.4.2.tar.gz.

File metadata

  • Download URL: gplearn-0.4.2.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for gplearn-0.4.2.tar.gz
Algorithm Hash digest
SHA256 31b6d04562e639689c44f5bd1475d87201084e7689a986f1784f10a1175b7814
MD5 03877c06d59a7d64de280e68d609c3f0
BLAKE2b-256 912d0a30cb1f4b50865484041e691fe83cffaf64f0da631c42b56178218e4c94

See more details on using hashes here.

File details

Details for the file gplearn-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: gplearn-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for gplearn-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c7204c48ca0a8d8590d085bb2b7b0446245c3796f8d85ee477464de07d27a4d
MD5 59bc40e3b9dfd10896124f88f370eed4
BLAKE2b-256 ccb0063b2ddfd9258c4f43abd3b5d13ca94b53e9479a3f21df18fafe3948b67d

See more details on using hashes here.

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