Description Usage Arguments Details Value Author(s)
Predict the class of a new observation based on k-NN.
1 2 |
object |
object of class |
newdata |
a data frame of new observations. |
type |
return either the predicted class or the proportion of the votes for the winning class. |
... |
additional arguments. |
This function is a method for the generic function predict
for class knn3
. For the details see knn3
. This is essentially
a copy of predict.ipredknn
.
Either the predicted class or the proportion of the votes for each class.
predict.ipredknn
by Torsten.Hothorn <Torsten.Hothorn@rzmail.uni-erlangen.de>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.