Description Usage Arguments Value Author(s) Examples
This is a general purpose function to estimate the misclassification rate for a specified classifier.
1 2 |
X |
inputs |
y |
output factor |
yh |
function with arguments dfTrain and dfTest that produces the missclassification rate for test data |
MaxIter |
Number of iterations of the CV procedure |
d |
Number of observations for the hold-out sample |
NCores |
Default is 1 which does not use the parallel package. Otherwise, you can set to the number of cores available. If unsure, just experiment! |
libs |
Required libraries needed for the predictor. |
seed |
Default is to use R's default which is based on the current time. Otherwise set to an integer value. See Details. |
... |
Additional arguments that are passed to yh. |
cross-validated mis-classifcation rate
A. I. McLeod
1 2 3 4 | Xy <- rmix(200) #training data
X <- as.matrix.data.frame(Xy[,1:2])
y <- Xy[,3]
cgcv(X, y, MaxIter=50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.