Skip to main content

A genetic AutoML system for ensemble methods

Project description

genEns

genEns is an AutoML system for pipeline optimization based on developmental genetic programming.

Installation

Clone the repository.

git clone https://github.com/gabrielasuchopar/genens.git
pip install genens

Using genEns

As for now, the GenensClassifier is ready to be used. It has an interface similar to other scikit-learn estimators. When fit() is called, the evolutionary optimization is run. After it finishes, predict() produces a prediction with the best of optimized pipelines. Alternatively, you can call get\_best\_pipelines() to get pipelines from the pareto front.

from genens import GenensClassifier
from sklearn.datasets import load_iris()

iris = load_iris()
train_X, test_X, train_y, test_y = train_test_split(iris.data, iris.target, test_size=0.25)

clf = GenensClassifier()
clf.fit(train_X, train_y)
... # process of evolution

pred = clf.predict(test_X)

Tests

Directory ./genens/tests contains scripts for running dataset tests and produce data about evolution process along with pickle files of best optimized pipelines. Sample config files are included in ./genens/tests/config.

  • Run genEns on a dataset specified in the config file.

python ./genens/tests/run_datasets.py --out OUT_DIR config CONFIG

python ./genens/tests/run_openml.py --out OUT_DIR --config CONFIG

More tests are to be included in later releases.

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

genens-0.1.6.tar.gz (35.9 kB view details)

Uploaded Source

File details

Details for the file genens-0.1.6.tar.gz.

File metadata

  • Download URL: genens-0.1.6.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for genens-0.1.6.tar.gz
Algorithm Hash digest
SHA256 259415c504d79e90e48d8f03baa50994dfac5928a6d027844df9aba22b42e42e
MD5 da896a0dc815006690ab5473872be2ec
BLAKE2b-256 4c9c3a9141295e69685ba67ccec6be70326643c731aef3d983df9982e2f39b0a

See more details on using hashes here.

Supported by

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