Plots the value of a variable on the x-axis and the SHAP value of the same variable on the y-axis. Accepts a class_id and variable_name.
dependence_plot(object, variable_name = "", class_id = 0, dpi = 200, ...)
ShapInterpretation object
the name of the column
is used to indicate the class of interest for a classification model. It can either be an int or str representation for a class of choice. This plot shows how the model depends on the given variable. Vertical dispersion of the datapoints represent interaction effects. Gray ticks along the y-axis are datapoints where the variable's values were NaN.
dots per inch
additional arguments
None