Description Usage Arguments Details Value Author(s)
Produce predictions for a knncat classifier
1 2 3 4 |
object |
Knncat object, from knncat |
train |
Training set used to build classifier |
newdata |
New data on which to make predictions |
train.classcol |
Column number for classification in training set. Default: 1 |
newdata.classcol |
Column number for classification in newdata set. Default: 1. If <= 0, new data has no classifications. |
return.classes |
Logical; if TRUE, return a vector of classifications of the newdata set. Default: TRUE |
more |
Logical; if TRUE, also print error rate. Default: FALSE |
verbose |
Level of verbosity for debugging. Default: 0 |
... |
Other arguments, currently ignored |
This prints the misclassification rate from the knncat classifier, together with an indication as to whether it was based on a training or test set.
None.
Samuel E. Buttrey, buttrey@nps.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.