Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trevorstephens/gplearn
Genetic Programming in Python, with a scikit-learn inspired API
https://github.com/trevorstephens/gplearn
genetic-programming machine-learning python scikit-learn symbolic-regression
Last synced: 30 minutes ago
JSON representation
Genetic Programming in Python, with a scikit-learn inspired API
- Host: GitHub
- URL: https://github.com/trevorstephens/gplearn
- Owner: trevorstephens
- License: bsd-3-clause
- Created: 2015-03-26T01:01:14.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T15:04:03.000Z (about 1 year ago)
- Last Synced: 2024-12-05T08:02:09.880Z (7 days ago)
- Topics: genetic-programming, machine-learning, python, scikit-learn, symbolic-regression
- Language: Python
- Homepage: http://gplearn.readthedocs.io/
- Size: 7.62 MB
- Stars: 1,627
- Watchers: 51
- Forks: 284
- Open Issues: 25
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - gplearn - Genetic Programming in Python, with a scikit-learn inspired API. (Machine Learning Framework / Hyperparameter Search & Gradient-Free Optimization)
- awesome-python-machine-learning-resources - GitHub - 7% open · ⏱️ 04.08.2022): (Others)
- awesome-sciml - trevorstephens/gplearn: Genetic Programming in Python, with a scikit-learn inspired API
README
.. image:: https://img.shields.io/pypi/v/gplearn.svg
:target: https://pypi.python.org/pypi/gplearn/
:alt: Version
.. image:: https://img.shields.io/pypi/l/gplearn.svg
:target: https://github.com/trevorstephens/gplearn/blob/main/LICENSE
:alt: License
.. image:: https://readthedocs.org/projects/gplearn/badge/?version=stable
:target: http://gplearn.readthedocs.io/
:alt: Documentation Status
.. image:: https://github.com/trevorstephens/gplearn/actions/workflows/build.yml/badge.svg?branch=master
:target: https://github.com/trevorstephens/gplearn/actions/workflows/build.yml
:alt: Test Status
.. image:: https://coveralls.io/repos/trevorstephens/gplearn/badge.svg
:target: https://coveralls.io/r/trevorstephens/gplearn
:alt: Test Coverage
.. image:: https://app.codacy.com/project/badge/Grade/02506317148e41a4b68a66e4c4e2b035
:target: https://app.codacy.com/gh/trevorstephens/gplearn/dashboard
:alt: Code Health|
.. image:: https://raw.githubusercontent.com/trevorstephens/gplearn/master/doc/logos/gplearn-wide.png
:target: https://github.com/trevorstephens/gplearn
:alt: 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 `_.