Skip to main content

Mercury's explainability is a library with implementations of different state-of-the-art methods in the field of explainability

Project description

mercury-explainability

Python 3.8 Python 3.9 Python 3.10 Python 3.11 Python 3.12 Apache 2 license Ask Me Anything !

mercury-explainability is a library with implementations of different state-of-the-art methods in the field of explainability. They are designed to work efficiently and to be easily integrated with the main Machine Learning frameworks.

Mercury project at BBVA

Mercury is a collaborative library that was developed by the Advanced Analytics community at BBVA. Originally, it was created as an InnerSource project but after some time, we decided to release certain parts of the project as Open Source. That's the case with the mercury-explainability package.

The basic block of mercury-explainability is the Explainer class. Each one of the explainers in mercury-explainability offers a different method for explaining your models and often will return an Explanation type object containing the result of that particular explainer.

The usage of most of the explainers you will find in this library follows this schema:

from mercury.explainability import ExplainerExample
explainer = ExplainerExample(function_to_explain)
explanation = explainer.explain(dataset)

Basically, you simply need to instantiate your desired Explainer (note that the above example ExplainerExample does not exist) providing your custom function you desire to get an explanation for, which usually will be your model’s inference or evaluation function. These explainers are ready to work efficiently with most of the frameworks you will likely use as a data scientist (yes, included Spark).

If you're interested in learning more about the Mercury project, we recommend reading this blog post from www.bbvaaifactory.com

User installation

The easiest way to install mercury-explainability is using pip:

pip install -U mercury-explainability

Help and support

This library is currently maintained by a dedicated team of data scientists and machine learning engineers from BBVA.

Documentation

website: https://bbva.github.io/mercury-explainability/site/

Email

mercury.group@bbva.com

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

mercury-explainability-1.1.4.tar.gz (3.2 MB view details)

Uploaded Source

File details

Details for the file mercury-explainability-1.1.4.tar.gz.

File metadata

  • Download URL: mercury-explainability-1.1.4.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for mercury-explainability-1.1.4.tar.gz
Algorithm Hash digest
SHA256 74fd1a50470ebcd4dfe2ff60b0110dd8d015c6cab6f8ad9c2ca4bb6a68174ae7
MD5 b42370829e6beeff25d593a310ffc3fd
BLAKE2b-256 27de5b02e76122078f365206d8e3c8bff378ff3a3b93b9274e643ed02a5225f3

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