shap.multioutput_decision_plot

shap.multioutput_decision_plot(base_values, shap_values, row_index, **kwargs) → Optional[shap.plots._decision.DecisionPlotResult]

Decision plot for multioutput models.

Plots all outputs for a single observation. By default, the plotted base value will be the mean of base_values unless new_base_value is specified. Supports both SHAP values and SHAP interaction values.

Parameters
base_valueslist of float

This is the reference value that the feature contributions start from. Use explainer.expected_value.

shap_valueslist of numpy.ndarray

A multioutput list of SHAP matrices or SHAP cubes from explainer.shap_values() or explainer.shap_interaction_values(), respectively.

row_indexint

The integer index of the row to plot.

**kwargsAny

Arguments to be passed on to decision_plot().

Returns
DecisionPlotResult or None

Returns a DecisionPlotResult object if return_objects=True. Returns None otherwise (the default).