Skip to content

Add recurrent model attribution tutorial (#1205)#1834

Open
craymichael wants to merge 1 commit into
meta-pytorch:masterfrom
craymichael:docs/1205-recurrent-model-tutorial
Open

Add recurrent model attribution tutorial (#1205)#1834
craymichael wants to merge 1 commit into
meta-pytorch:masterfrom
craymichael:docs/1205-recurrent-model-tutorial

Conversation

@craymichael
Copy link
Copy Markdown
Contributor

Fixes #1205.

Issue: #1205
Issue summary: Captum lacked a recurrent-model tutorial showing sequence and recurrent-layer attribution.

Summary:

  • Add an LSTM sequence-classification tutorial with input attribution and time/feature aggregation.
  • Include LayerIntegratedGradients on the recurrent layer with attribute_to_layer_input=True.

Test Plan:

  • venv/uv/bin/python -m json.tool tutorials/Recurrent_Model_Interpret.ipynb
  • Pyre: not applicable; tutorial-only change.

Issue: meta-pytorch#1205
Issue summary: Captum lacked a recurrent-model tutorial showing sequence and recurrent-layer attribution.

Summary:
- Add an LSTM sequence-classification tutorial with input attribution and time/feature aggregation.
- Include LayerIntegratedGradients on the recurrent layer with attribute_to_layer_input=True.

Test Plan:
- venv/uv/bin/python -m json.tool tutorials/Recurrent_Model_Interpret.ipynb
- Pyre: not applicable; tutorial-only change.
@meta-cla meta-cla Bot added the cla signed label May 22, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 22, 2026

@craymichael has imported this pull request. If you are a Meta employee, you can view this in D106053939.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Tutorial for Recurrent based models

1 participant