View source: R/fastinference.R
dependence_plot | R Documentation |
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, ...)
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 |
None
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.