powered by
Evaluation a classification or regression method using bootstrap approach.
evaluate( methods, dataset, target = NULL, size = round(0.7 * nrow(dataset)), names = NULL, eval = "accuracy", seed = NULL, ... )
The classification or regression method to be evaluated.
The dataset to be split (data.frame or matrix).
data.frame
matrix
The column index of the target variable (class label or response variable).
The size of the training set (as an integer value).
Method names.
The evaluation function.
A specified seed for random number generation.
Other specific parameters for the leaning method.
The evaluation of the predictions (numeric value).
bootstrap, evaluation, splitdata
bootstrap
evaluation
splitdata
# NOT RUN { require ("datasets") data (iris) evaluate (c (NB, LDA), iris, target = 5, eval = c ("accuracy", "kappa"), seed = 0) # }
Run the code above in your browser using DataLab