simulate_data: Simulate data for partial dependence plotting

Description Usage Arguments

Description

Simulate data for partial dependence plotting

Usage

1
2
simulate_data(rf, d, class, var1, breaks1 = 50, var2 = NULL, breaks2 = 50,
  var3 = NULL, n_cores = parallel::detectCores(), ...)

Arguments

rf

random forest

d

The data frame used to train the original forest

class

Which class to plot

var1

(Required) Primary variable (preferably continuous)

breaks1

How many values of the primary variable should be sampled when calculating partial dependence?

var2

Secondary variable

breaks2

If var2 is numeric, in to how many categories should it be cut?

n_cores

How many cores to use when calculating in parallel? Defaults to all available cores.

shiny_session

If a Shiny session object is passed, a progress bar will be displayed while simulating new data.


mdlincoln/lumberjack documentation built on May 22, 2019, 4:13 p.m.