Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/api/interpret.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Interpret Module
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title formatting is inconsistent. The title should not have a trailing space and the underline should match the title length.

Copilot uses AI. Check for mistakes.

PyHealth provides specialized tools for interpreting deep models post-hoc.
===============
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underline length (15 characters) doesn't match the title length (16 characters including the trailing space). For proper RST formatting, the underline should be at least as long as the title.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +4
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title format is inconsistent with RST conventions. The title should be followed by an underline of equal signs matching the title length, and the description should come after the underline.

Suggested change
Interpret Module
PyHealth provides specialized tools for interpreting deep models post-hoc.
===============
Interpret Module
================
PyHealth provides specialized tools for interpreting deep models post-hoc.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underline length (15 characters) does not match the title 'Interpret Module' (16 characters including space). RST requires the underline to be at least as long as the title.

Suggested change
===============
================

Copilot uses AI. Check for mistakes.

.. toctree::
:maxdepth: 3

interpret/pyhealth.interpret.methods.chefer


17 changes: 17 additions & 0 deletions docs/api/interpret/pyhealth.interpret.methods.chefer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pyhealth.interpret.methods.chefer
===================================
This method implements the Chefer et al. method for interpreting transformer models in PyHealth.

Paper is available at https://arxiv.org/abs/2012.09838.


.. autoclass:: pyhealth.interpret.methods.chefer
:members:
:undoc-members:
:show-inheritance:






2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ GRASP deep learning ``pyhealth.models.GRASP`
api/metrics
api/medcode
api/calib

api/interpret

.. toctree::
:maxdepth: 2
Expand Down