View source: R/SOptim_ClassificationFunctions.R
createDataSplits | R Documentation |
An auxiliary/internal function used to create a data split intended to evaluate classification performance.
Used internally in the calibrateClassifier
function.
createDataSplits(y, evalMethod = "10FCV", nRounds = 20, trainPerc = 0.8)
y |
A vector containing train inputs. |
evalMethod |
A character string defining the evaluation method. The available methods are |
nRounds |
Number of evaluation rounds. This is only used for HOCV method. |
trainPerc |
Proportion of data used for training the algorithm (by deafult eaul to 0.8). This is
only used for the |
Uses function createDataPartition from caret package as the 'workhorse' to generate data splits.
A list like object of class 'dataSplit' to be used in calibrateClassifier() function. Each element on the list contains the indices used for training.
createDataSplits(y=rnorm(100), evalMethod = "10FCV", nRounds = 20, trainPerc = 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.