Learn R Programming

emil (version 1.1-6)

subframe: Extract and organize predictions according to a resampling scheme

Description

This function arranges predictions of a performance evaluation in a data frame where the rows correspond do observations and the columns to folds, to make it easy to study the variability of each observation with respect to the resampling.

Usage

subframe(x, ..., resample)

Arguments

x
Performance evaluation results.
...
Indexes specify what to extract, sent to subtree.
resample
Resampling scheme used to carry out a performance evaluation.

See Also

subtree

Examples

Run this code
proc <- modeling.procedure("lda")
cv <- resample("crossval", y=iris$Species, nfold=5, nrep=3)
perf <- evaluate.modeling(proc, x=iris[-5], y=iris$Species, resample=cv)
subframe(perf, TRUE, "pred", "prob", 1, resample=cv)

Run the code above in your browser using DataLab