Plots an explanation of a single prediction as a waterfall plot. Accepts a row_index and class_id.

waterfall_plot(object, row_idx = NULL, class_id = 0, dpi = 200, ...)

Arguments

object

ShapInterpretation object

row_idx

is the index of the row chosen in test_data to be analyzed, which defaults to zero.

class_id

Accepts a class_id which 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.

dpi

dots per inch

...

additional arguments

Value

None