dependence | R Documentation |
Generate data for partial dependence plots.
dependence(object, ...)
## S3 method for class 'nested'
dependence(
object,
x = NULL,
cond = NULL,
alpha = NULL,
lambda = NULL,
n_pred = NULL,
metric = "auto",
oneSE = TRUE,
x_lab = NULL,
y_lab = NULL,
...,
parallel_type = NULL,
n_cores = NULL,
cl = NULL
)
## S3 method for class 'beset'
dependence(
object,
x = NULL,
cond = NULL,
alpha = NULL,
lambda = NULL,
n_pred = NULL,
metric = "auto",
oneSE = TRUE,
x_lab = NULL,
y_lab = NULL,
...,
parallel_type = NULL,
n_cores = NULL,
cl = NULL
)
## S3 method for class 'beset_rf'
dependence(
object,
x = NULL,
cond = NULL,
x_lab = NULL,
y_lab = NULL,
...,
parallel_type = NULL,
n_cores = NULL,
cl = NULL
)
## S3 method for class 'part_depend'
plot(x, order = "delta", p_max = 16, ...)
object |
A "beset" model object for which partial dependence plots are desired. |
... |
Additional arguments affecting the plots produced. |
x |
(Optional) |
cond |
(Optional) named |
alpha |
Value of the elastic-net mixing parameter alpha at which
predictions are required. Must be a value of alpha that was tried during
training. If omitted, cross-validated optimal or 1SE-from-optimal alpha will
be used, depending on |
lambda |
Value of the elastic-net penalty parameter lambda at which
predictions are required. If omitted, cross-validated optimal or
1SE-from-optimal lambda will be used, depending on |
n_pred |
(Optional) |
metric |
|
oneSE |
|
x_lab |
(Optional) |
y_lab |
(Optional) |
parallel_type |
(Optional) character string indicating the type of
parallel operation to be used, either |
n_cores |
Integer value indicating the number of workers to run in
parallel during subset search and cross-validation. By default, this will
be set to one fewer than the maximum number of physical cores you have
available, as indicated by |
cl |
(Optional) |
order |
If plotting a grid, order in which partial dependence plots
should appear. Options are |
p_max |
Maximum number of partial dependence effects to plot. Default is 16, resulting in a 4 X 4 grid. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.