predict.knnTree {knnTree} | R Documentation |
Predict class labels from a knnTree object and some data
predict.knnTree (object, test, train, verbose=FALSE, ...)
object |
knnTree model created by R{knnTree} |
test |
data frame or matrix of test data with classifications in column 1. |
train |
data frame or matrix of training data with classifications in column 1 |
verbose |
logical; if TRUE the error rate for each leaf is printed |
... |
Other arguments, currently ignored |
This uses a knnTree object created by R{knnTree} to make predictions on some data.
A vector of classifications of the test data.
Sam Buttrey buttrey@nps.navy.mil
Buttrey and Karo, 2002
link{knn.var}
, knnTree