Comparison
captum vs lime vs shap
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Model Interpretability for PyTorch
Maintained. Last release 7 months ago, commits in 17 of the last 26 weeks. Weaker on issue handling and release cadence.
$
pip install captumLocal Interpretable Model-Agnostic Explanations for machine learning classifiers
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install limeA unified approach to explain the output of any machine learning model.
Actively maintained. Last release 6 weeks ago, commits in 23 of the last 26 weeks. A safe choice.
$
pip install shapIn short
- lime looks abandoned: avoid it for new projects.
- shap is the most used: 9.7M downloads a month, 21× more than captum.
- shap also has the best Pythie’s Index (85).
- captum is growing fastest: downloads +22% over the last month.
- Safe default for a new project: shap.