alibi  by SeldonIO

Python library for ML model inspection and interpretation

Created 6 years ago
2,606 stars

Top 17.9% 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

2 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
7 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Gabriel Almeida Gabriel Almeida(Cofounder of Langflow), and
5 more.

lit by PAIR-code

0.2%
4k
Interactive ML model analysis tool for understanding model behavior
Created 5 years ago
Updated 1 month ago
Feedback? Help us improve.