Simulate data for partial dependence plotting
1 2 | simulate_data(rf, d, class, var1, breaks1 = 50, var2 = NULL, breaks2 = 50,
var3 = NULL, n_cores = parallel::detectCores(), ...)
|
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 |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.