Skip to content

Interpretability Target_Idx / Multilabel setting is not well-defined #915

Closed

Description

@jhnwu3

We need to standardize how we do interpretability with multilabel setting:

  • Decision boundary needs to be explicitly defined
  • Target_Idx is irrelevant for binary classification
  • defaullt behavior is not well-documented in the interpreter for multilabel.

https://github.com/sunlabuiuc/PyHealth/blob/master/pyhealth/interpret/methods/integrated_gradients.py

Activity

  1. added
    documentation
    on Mar 27, 2026
  2. ParthAgarwalCode commented on Apr 5, 2026

    @ParthAgarwalCode

    Hi! I'm interested in working on this as a contribution. Is it still available?

  3. solarsys commented on Nov 14, 2026

    @solarsys
    Collaborator

    Addressed by #926: every interpreter now resolves the target through BaseInterpreter._resolve_target_indices, whose docstring defines the behaviour. For a binary model (one logit) target_class_idx is a no-op. For multi-class and multi-label it uses target_class_idx when given, otherwise the argmax logit. Please reopen if a specific interpreter still behaves differently.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions