Skip to content

Commit 645af96

Browse files
aobo-yfacebook-github-bot
authored andcommitted
Add docs for LLMAttribution (#1217)
Summary: as title Pull Request resolved: #1217 Reviewed By: vivekmig Differential Revision: D51803181 Pulled By: aobo-y fbshipit-source-id: 81d9bb4bb5d839ac12b98e2344c87ec59b5f0718
1 parent 47503f8 commit 645af96

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

sphinx/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Captum API Reference
1212
:caption: API Reference
1313

1414
attribution
15+
llm_attr
1516
noise_tunnel
1617
layer
1718
neuron

sphinx/source/llm_attr.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
LLM Attribution Classes
2+
========================
3+
4+
LLMAttribution
5+
^^^^^^^^^^^^^^^^^^^^^^^^
6+
7+
.. autoclass:: captum.attr.LLMAttribution
8+
:members:
9+
10+
LLMGradientAttribution
11+
^^^^^^^^^^^^^^^^^^^^^^^^
12+
13+
.. autoclass:: captum.attr.LLMGradientAttribution
14+
:members:
15+
16+
17+
LLMAttributionResult
18+
^^^^^^^^^^^^^^^^^^^^^^^^
19+
20+
.. autoclass:: captum.attr.LLMAttributionResult
21+
:members:

sphinx/source/utilities.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Utilities
22
==========
33

4+
Interpretable Input
5+
^^^^^^^^^^^^^^^^^^^^^
6+
.. autoclass:: captum.attr.InterpretableInput
7+
:members:
8+
9+
.. autoclass:: captum.attr.TextTemplateInput
10+
:members:
11+
12+
.. autoclass:: captum.attr.TextTokenInput
13+
:members:
14+
15+
416
Visualization
517
^^^^^^^^^^^^^^
618

@@ -48,3 +60,9 @@ Linear Models
4860
:members:
4961
.. autoclass:: captum._utils.models.linear_model.SGDRidge
5062
:members:
63+
64+
Baselines
65+
^^^^^^^^^^^^^^^^
66+
67+
.. autoclass:: captum.attr.ProductBaselines
68+
:members:

0 commit comments

Comments
 (0)