Skip to content

Improve interactions plot parity with contribution plot - #758

Open
guillaume-vignal wants to merge 7 commits into
MAIF:developfrom
guillaume-vignal:feature/interaction_plot_improvment
Open

Improve interactions plot parity with contribution plot#758
guillaume-vignal wants to merge 7 commits into
MAIF:developfrom
guillaume-vignal:feature/interaction_plot_improvment

Conversation

@guillaume-vignal

@guillaume-vignal guillaume-vignal commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

interactions_plot and top_interactions_plot were not fully aligned with contribution_plot for multiclass handling and interaction readability.

Description

  • Added jittered violin point dispersion for interaction plots (with true non-jittered hover values).
  • Added adaptive interaction color scaling (cmin / cmax).
  • Added robust x-axis categorical mapping persistence in top interactions dropdown updates.
  • Added pair auto-ordering rules for readability (auto_order=True by default).
  • Added low-cardinality numeric-as-categorical handling on x-axis.
  • Switched interaction display values to display-ready data (x_init) for postprocessing/transcoding consistency.
  • Added crossed smart sampling on the joint distribution of the two interaction features.
  • Added multiclass label support:
    • interactions_plot(..., label=...)
    • top_interactions_plot(..., label=...)
    • propagated to report interaction generation.
  • Hardened SHAP interaction output handling for multiclass/multi-output formats (list and 4D variants).
  • Added type hints in plot_interactions.py.

Closes #757.

@guillaume-vignal guillaume-vignal self-assigned this Aug 31, 2026
@guillaume-vignal guillaume-vignal added the enhancement New feature or request label Sep 3, 2026
@guillaume-vignal
guillaume-vignal changed the base branch from master to develop September 4, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactions plot parity with contribution plot (multiclass label, crossed sampling, jittering)

1 participant