Plot.ShapImportance {AutoPlots}R Documentation

Plot.ShapImportance

Description

Plot.ShapImportance variable importance

Usage

Plot.ShapImportance(
  dt,
  PreAgg = FALSE,
  AggMethod = "meanabs",
  YVar = NULL,
  GroupVar = NULL,
  FacetRows = 1,
  FacetCols = 1,
  FacetLevels = NULL,
  NumberBins = 21,
  NumLevels_X = 33,
  NumLevels_Y = 33,
  Height = NULL,
  Width = NULL,
  Title = "Shap Importance",
  ShowLabels = FALSE,
  Title.YAxis = NULL,
  Title.XAxis = NULL,
  EchartsTheme = "dark",
  TextColor = "white",
  Debug = FALSE
)

Arguments

dt

source data.table

PreAgg

logical

AggMethod

"mean", "median", "sum", "sd", "skewness","kurtosis", "coeffvar", "meanabs", "medianabs", "sumabs", "sdabs", "skewnessabs", "kurtosisabs", "CoeffVarabs"

YVar

Names of shap columns

GroupVar

Name of by variable

FacetRows

Defaults to 1 which causes no faceting to occur vertically. Otherwise, supply a numeric value for the number of output grid rows

FacetCols

Defaults to 1 which causes no faceting to occur horizontally. Otherwise, supply a numeric value for the number of output grid columns

FacetLevels

Faceting rows x columns is the max number of levels allowed in a grid. If your GroupVar has more you can supply the levels to display.

NumberBins

= 21

NumLevels_X

= 20

NumLevels_Y

= 20

Height

"400px"

Width

"200px"

Title

"Heatmap"

ShowLabels

character

Title.YAxis

character

Title.XAxis

character

EchartsTheme

"dark-blue"

TextColor

character

Debug

= FALSE

Value

plot

Author(s)

Adrian Antico

See Also

Other Model Evaluation: Plot.BinaryMetrics(), Plot.Calibration.Box(), Plot.Calibration.Line(), Plot.ConfusionMatrix(), Plot.Gains(), Plot.Lift(), Plot.PartialDependence.Box(), Plot.PartialDependence.HeatMap(), Plot.PartialDependence.Line(), Plot.ROC(), Plot.Residuals.Histogram(), Plot.Residuals.Scatter(), Plot.VariableImportance()


[Package AutoPlots version 1.0.0 Index]