Explain and debug any black-box Machine Learning model.
Project description
ExplainX.ai is a fast, light-weight and scalable Explainable AI framework for data scientists. It enables you to explain and debug state of the art machine learning models in as simple as one line of code.
Why we need explainability & interpretibility?
Essential for:
- Model debugging - Why did my model make a mistake? How can I improve the accuracy of the model?
- Detecting fairness issues - Is my model biased? If yes, where?
- Human-AI cooperation - How can I understand and trust the model's decisions?
- Regulatory compliance - Does my model satisfy legal & regulatory requirements?
- High-risk applications - Healthcare, Financial Services, FinTech, Judicial, Security etc,.
Visit explainx.ai website to learn more: https://www.explainx.ai
Try it out
- Installing explainX
- Working Examples
- explainX Dashboard Features
- Documentation
- Provide Feedback to Improve explainX.ai
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+
-
Looking to run explainX on the cloud? 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.
- Run the following command.
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
- 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
- Install Microsoft C++ Build Tools found here.
- Install Nodejs found here.
- Open the terminal and run the following to install localtunnel.
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 *
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://0.0.0.0:8080
Running ExplainX on the cloud e.g., AWS Sagemaker? If https://0.0.0.0:8080 does not work, open the terminal and run the following command.
lt -h "https://serverless.social" -p [port number]
lt -h "https://serverless.social" -p 8080
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:
(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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.