Skip to main content

State of the art to explain any blackbox Machine Learning model.

Project description

explainX.ai

Python supported PyPi Version explainx.ai website

ExplainX.ai is a fast, light-weight and scalable Explainable AI framework for data scientists. It enables you to explain, debug and monitor state of the art machine learning models in as simple as one line of code. Tweet

explainX.ai

Why we need explainability & interpretibility?

Essential for:

  1. Model debugging - Why did my model make a mistake? How can I improve the accuracy of the model?
  2. Detecting fairness issues - Is my model biased? If yes, where?
  3. Human-AI cooperation - How can I understand and trust the model's decisions?
  4. Regulatory compliance - Does my model satisfy legal & regulatory requirements?
  5. High-risk applications - Healthcare, Financial Services, FinTech, Judicial, Security etc,.

Visit explainx.ai website to learn more: https://www.explainx.ai

Try it out

Installation

  • Desktop: You can use explainX on your own computer in under a minute. If you already have a python environment setup, just run the following command.

  • Make sure you have Python 3.5+

  • Install nodejs and localtunnel using the following instructions.

To install nodejs and localtunnel on MAC OS

  • Open the terminal.
  • Install Xcode Command Line Tools using the following.
xcode-select --install
  • Install brew using the following.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 
  • Install nodejs using the following.
brew install nodejs
  • Install localtunnel using the following.
npm install -g localtunnel

To install nodejs and localtunnel on Ubuntu

  • Open the terminal.
  • Install nodejs using the following.
sudo apt install nodejs
  • Install npm using the following.
sudo apt install npm
  • Install localtunnel using the following.
npm install -g localtunnel

To install nodejs and localtunnel on CentOS

  • Open the terminal.
  • Install nodejs using the following.
sudo yum install nodejs
  • Install npm using the following.
sudo yum install npm
  • Install localtunnel using the following.
npm install -g localtunnel

To install nodejs and localtunnel on Windows

npm install -g localtunnel

Lastly, install ExplainX using the following.

pip install explainx
  • Jupyter Notebook: You can also install explainx via Jupyter Notebook. Just run the following command:
!pip install explainx

Usage

Once you have install explainX, you can simply follow the example below to use it:

Import explainx

from explainx import *

Runnning explainx for the first time? Run this function.

explainx.run_only_first_time()

Load dataset as X_Data, Y_Data in your XGBoost Model

#X_Data = Pandas DataFrame
#Y_Data = Numpy Array or List

X_Data, Y_Data = explainx.dataset_boston()

#Train Model
model = xgboost.train({"learning_rate": 0.01}, xgboost.DMatrix(X_Data, label=Y_Data), 100)

One line of code to use the explainx module

explainx.ai(X_Data, Y_Data, model, model_name="xgboost")

Click on the link to view the dashboard:

App running on https://127.0.0.1:8050

Learn to analyze the dashboard by following this link: explainX Dashboard Features

Visit the documentation to learn more

Models Supported

CatBoost, XGBoost, Scikit-learn Models, SVM, Neural Networks

Video Tutorial

Please click on the image below to load the tutorial:

here

(Note: Please manually set it to 720p or greater to have the text appear clearly)

Contributing

Pull requests are welcome. In order to make changes to explainx, the ideal approach is to fork the repository then clone the fork locally.

For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Report Issues

Please help us by reporting any issues you may have while using explainX.

License

MIT

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

explainx-2.37.tar.gz (711.9 kB view hashes)

Uploaded Source

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