Skip to main content

A library that helps to explain AI models in a really quick & easy way

Project description

Easy Explain

Python Version GitHub PyPI Download Code style: black Licence

Simplify the Explanation of AI Models

Unlock the "why" behind your AI models' decisions with easy-explain, a Python package designed to democratize access to advanced XAI algorithms. By integrating state-of-the-art explanation techniques with minimal code, we make AI transparency accessible to developers and researchers alike.

[!IMPORTANT] The new version of easy-explain has breaking changes. We have changed the logic of different imports to support more models like YoloV8. Have a look at the provided examples.

Requirements

Python Versions Supported

  • Primary: 3.10
  • Also Supported: 3.8, 3.9

Ensure one of these Python versions is installed on your system to use easy-explain.

Install Environment & Dependencies

easy-explain can be seamlessly integrated into your projects with a straightforward installation process:

Installation as a Package

To incorporate easy-explain into your project as a dependency, execute the following command in your terminal:

pip install easy-explain

Features and Functionality

easy-explain uses under the hood different packages based on the model to be used. Captum is used for classification models and it aids to comprehend how the data properties impact the model predictions or neuron activations, offering insights on how the model performs. Captum comes together with Pytorch library. There are also other customade algorithms to support other models like the LRP implementation for YoloV8.

Currently, easy-explain specializes in two cutting-edge XAI methodologies for images:

  • Occlusion: For deep insight into classification model decisions.
  • Layer-wise Relevance Propagation (LRP): Specifically tailored for YoloV8 models, unveiling the decision-making process in object detection tasks.

Quick Start

To begin unraveling the intricacies of your model's decisions, import and utilize the corresponding classes as follows:

from easy_explain.methods.occlusion.occlusion import OcclusionExplain 
from easy_explain.methods.lrp.yolov8.yolo import YOLOv8LRP

For more information about how to begin have a look at the examples notebooks.

Examples

Explore how easy-explain can be applied in various scenarios:

Use Case Example

Use Case Example

Use Case Example

How to contribute?

easy-explain thrives on community contributions, from feature requests and bug reports to code submissions. We encourage you to share your insights, improvements, and use cases to foster a collaborative environment for advancing XAI.

Getting Involved

Submit Issues: Encounter a bug or have a feature idea? Let us know through our issues page.

Code Contributions: Interested in contributing code? Please refer to our CONTRIBUTING guidelines for more information on how to get started..

Join us in making AI models more interpretable, transparent, and trustworthy with easy-explain.

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

easy_explain-0.4.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file easy_explain-0.4.0.tar.gz.

File metadata

  • Download URL: easy_explain-0.4.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for easy_explain-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c95f3deaba16b6d864d0d615f9f0f7cd8f1d15be25494794bf8e4ac7ba413d6e
MD5 953934c28e8e921f1ed44ea465c3c2a1
BLAKE2b-256 ff76f5289eba40b5007d36e11dc6e85dcce9b6eeff2ba351add5c5f9d83f55c9

See more details on using hashes here.

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