Skip to main content
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 is required for installation. If you come across any issues in running or installing the package, please submit a bug report.

Metadata

Release files for gplearn 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gplearn 0.4.3
File Size Uploaded
gplearn-0.4.3.tar.gz 2.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gplearn 0.4.3
File Interpreter ABI Platform
gplearn-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / gplearn-0.4.3.tar.gz

Download URL gplearn-0.4.3.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
3ce24bdf25fbc33ccf0b041a75e63db27804bf103e49e9f6f20824cf673b0047
BLAKE2b-256 checksum
How to use checksums
43fc2e5195be8489b633438489483e45c940829a74f4101720d9bf1efd0319dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / gplearn-0.4.3-py3-none-any.whl

Download URL gplearn-0.4.3-py3-none-any.whl
Size 40.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e49838b57efa25dadf0e9b52df029254c826cf9bf6d1e8afd5f964ce8f213382
BLAKE2b-256 checksum
How to use checksums
275e5a90d0911e160770f1824b5f475a9612e9dfafc90224d0258aab8172ed01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2

2 release files

0.1.0

2 release files

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page