shapiq.plotΒΆ

Visualization functions for InteractionValues.

Provides bar plots, beeswarm plots, force plots, network graphs, and more for visualising Shapley values and interaction scores.

Functions

network_plot

Draws the interaction network plot [Mus24net].

stacked_bar_plot

The stacked bar plot interaction scores.

si_graph_plot

Plots the interaction values as an explanation graph.

force_plot

Draws a force plot for the given interaction values.

bar_plot

Draws interaction values as a bar plot (adapted from SHAP).

waterfall_plot

Draws a waterfall plot with the interaction values.

sentence_plot

Plots the first order effects (attributions) of a sentence or paragraph.

upset_plot

Plots the upset plot.

beeswarm_plot

Plots a beeswarm plot of SHAP-IQ interaction values.

scatter_plot

Plots a scatter (dependence) plot of an interaction's per-sample value against one feature.

abbreviate_feature_names

A rudimentary function to abbreviate feature names for plotting.