Use resampling to quantify uncertainties about the performance of one or several binary classifiers evaluated via cross-validation.
performanceResample(
object,
data = NULL,
name.response = NULL,
type.resampling = "permutation",
n.resampling = 1000,
fold.repetition = 0,
conf.level = 0.95,
cpus = 1,
seed = NULL,
trace = TRUE,
filename = NULL,
...
)
An S3 object of class performance
.
a glm
or range
object, or a list of such object.
[data.frame] the training data.
[character] The name of the response variable (i.e. the one containing the categories).
[character] Should non-parametric bootstrap ("bootstrap"
) or permutation of the outcome ("permutation"
) be used.
[integer,>0] Number of bootstrap samples or permutations.
[integer,>0] Nnumber of folds used in the cross-validation. Should be strictly positive.
[numeric, 0-1] confidence level for the confidence intervals.
[integer, >0] the number of CPU to use. If strictly greater than 1, resampling is perform in parallel.
[integer, >0] Random number generator (RNG) state used when starting resampling.
If NULL
no state is set.
[logical] Should the execution of the function be traced.
[character] Prefix for the files containing each result.
arguments passed to performance
.
WARNING: using bootstrap after cross-validation may not provide valid variance/CI/p-value estimates.