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
Draws the interaction network plot [Mus24net]. |
|
The stacked bar plot interaction scores. |
|
Plots the interaction values as an explanation graph. |
|
Draws a force plot for the given interaction values. |
|
Draws interaction values as a bar plot (adapted from SHAP). |
|
Draws a waterfall plot with the interaction values. |
|
Plots the first order effects (attributions) of a sentence or paragraph. |
|
Plots the upset plot. |
|
Plots a beeswarm plot of SHAP-IQ interaction values. |
|
Plots a scatter (dependence) plot of an interaction's per-sample value against one feature. |
|
A rudimentary function to abbreviate feature names for plotting. |