captum.ai logo

captum.ai

Free

Model Interpretability for PyTorch

Developer ToolsFreeFree tier
#youtube
Type
Saas
Company
Captum

About captum.ai

Captum is a PyTorch library for model interpretability. It provides tools and techniques to understand and attribute the predictions of PyTorch models across various modalities, including vision and text. Captum supports most PyTorch models and allows for easy implementation and benchmarking of new interpretability algorithms.

How to Use

Install Captum via conda or pip. Import necessary libraries like numpy, torch, and IntegratedGradients from captum.attr. Define and prepare your PyTorch model. Instantiate an interpretability algorithm (e.g., IntegratedGradients). Apply the algorithm to your input data and baseline to obtain attributions and convergence delta.

Key Features

  • Multi-modal interpretability support
  • Built on PyTorch
  • Extensible and open source

Use Cases

  • Understanding feature importance in image classification models
  • Analyzing the influence of words in text classification models

Key Features

Multi-modal interpretability support
Built on PyTorch
Extensible and open source

Pros & Cons

Pros
  • Open source and free to use
  • Supports multiple modalities including vision and text
  • Seamless integration with PyTorch models
  • Allows easy implementation and benchmarking of new interpretability algorithms

Best For

Understanding feature importance in image classification modelsAnalyzing the influence of words in text classification models

Alternatives to captum.ai

FAQ

How do I install Captum?
Captum can be installed via conda (recommended) with 'conda install captum -c pytorch' or via pip with 'pip install captum'.