Python library for ML model inspection and interpretation
Top 18.8% on sourcepulse
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
pip install alibi
alibi[ray]
for distributed computation, alibi[shap]
for SHAP support.Highlighted Details
Maintenance & Community
Licensing & Compatibility
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.
1 month ago
Inactive