alibi  by SeldonIO

Python library for ML model inspection and interpretation

created 6 years ago
2,540 stars

Top 18.8% on sourcepulse

GitHubView on GitHub
Project Summary

Alibi is a Python library for explaining machine learning models, targeting ML engineers and researchers. It provides implementations of black-box and white-box, local and global explanation methods, enabling deeper model understanding and debugging.

How It Works

Alibi offers a scikit-learn-inspired API with initialize, fit, and explain steps. It supports a wide range of explanation techniques, including Anchors, Integrated Gradients, KernelSHAP, and Counterfactuals, catering to tabular, text, and image data. The library distinguishes between black-box (prediction function only) and white-box (model access required) methods, offering flexibility in model compatibility.

Quick Start & Requirements

  • Install via pip: pip install alibi
  • Optional dependencies: alibi[ray] for distributed computation, alibi[shap] for SHAP support.
  • Supports TensorFlow/Keras models for specific methods.
  • See Documentation for detailed examples.

Highlighted Details

  • Comprehensive suite of explanation methods: ALE, Partial Dependence, Anchors, CEM, Counterfactuals, Integrated Gradients, SHAP, Trust Scores, and more.
  • Supports tabular, text, and image data modalities.
  • Includes methods for model confidence and prototype generation.
  • Offers both local (instance-specific) and global (dataset-wide) explanations.

Maintenance & Community

  • Developed by Seldon.io.
  • See GitHub for contributors and activity.

Licensing & Compatibility

  • Source-available license.
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

Some methods require specific model types (e.g., TensorFlow/Keras) or additional dependencies like Ray for distributed explanations. The breadth of supported models varies per explanation technique.

Health Check
Last commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
1
Star History
53 stars in the last 90 days

Explore Similar Projects

Starred by Dominik Moritz Dominik Moritz(Professor at CMU; ML Researcher at Apple), Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake), and
2 more.

ecco by jalammar

0%
2k
Python library for interactive NLP model visualization in Jupyter notebooks
created 4 years ago
updated 11 months ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

lit by PAIR-code

0.0%
4k
Interactive ML model analysis tool for understanding model behavior
created 5 years ago
updated 5 days ago
Feedback? Help us improve.