dependence_plot: Dependence_plot

Description Usage Arguments Value

View source: R/fastinference.R

Description

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.

Usage

1
dependence_plot(object, variable_name = "", class_id = 0, dpi = 200, ...)

Arguments

object

ShapInterpretation object

variable_name

the name of the column

class_id

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.

dpi

dots per inch

...

additional arguments

Value

None


fastai documentation built on July 28, 2021, 5:06 p.m.