Skip to main content

Debug machine learning classifiers and explain their predictions

Project description

PyPI Version Build Status Code Coverage Documentation

ELI5 is a Python package which helps to debug machine learning classifiers and explain their predictions.

Currently it allows to:

  • explain weights and predictions of scikit-learn linear classifiers and regressors;

  • explain weights of scikit-learn decision trees and tree-based ensemble classifiers (via feature importances);

  • debug scikit-learn pipelines which contain HashingVectorizer, by undoing hashing;

  • explain predictions of any black-box classifier using LIME ( http://arxiv.org/abs/1602.04938 ) algorithm.

TODO:

License is MIT.

Check docs for more (sorry, also TODO).

Changelog

0.0.4 (2016-09-24)

  • eli5.sklearn.InvertableHashingVectorizer and eli5.sklearn.FeatureUnhasher allow to recover feature names for pipelines which use HashingVectorizer or FeatureHasher;

  • added support for scikit-learn linear regression models (ElasticNet, Lars, Lasso, LinearRegression, LinearSVR, Ridge, SGDRegressor);

  • doc and vec arguments are swapped in explain_prediction function; vec can now be omitted if an example is already vectorized;

  • fixed issue with dense feature vectors;

  • all class_names arguments are renamed to target_names;

  • feature name guessing is fixed for scikit-learn ensemble estimators;

  • testing improvements.

0.0.3 (2016-09-21)

  • support any black-box classifier using LIME (http://arxiv.org/abs/1602.04938) algorithm; text data support is built-in;

  • “vectorized” argument for sklearn.explain_prediction; it allows to pass example which is already vectorized;

  • allow to pass feature_names explicitly;

  • support classifiers without get_feature_names method using auto-generated feature names.

0.0.2 (2016-09-19)

  • ‘top’ argument of explain_prediction can be a tuple (num_positive, num_negative);

  • classifier name is no longer printed by default;

  • added eli5.sklearn.explain_prediction to explain individual examples;

  • fixed numpy warning.

0.0.1 (2016-09-15)

Pre-release.

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

eli5-0.0.4.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

eli5-0.0.4-py2.py3-none-any.whl (20.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file eli5-0.0.4.tar.gz.

File metadata

  • Download URL: eli5-0.0.4.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eli5-0.0.4.tar.gz
Algorithm Hash digest
SHA256 cbf14c3734702caeac3a9bbe7285e33473620b4c0710a19a99b68c29e8ff318b
MD5 84f89411da54f7af383ea9435a3f00ac
BLAKE2b-256 a0874552f4f69aefb9687ff1b4c7013272d332dbc422fa87f40a206f81d62914

See more details on using hashes here.

Provenance

File details

Details for the file eli5-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for eli5-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4871e629b63a8a403a161f05936bd22189f71b15753548378c543b6d1529066c
MD5 1b94d4a3f4611af9c7d2a7de6014bc19
BLAKE2b-256 7facc001371cac0d6571b07af866e3a27efc7eb8e6b24587f6206a781e2e7f0c

See more details on using hashes here.

Provenance

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