Predictions from k-Nearest Neighbors
Predict the class of a new observation based on k-NN.
## S3 method for class 'ipredknn' predict(object, newdata, type=c("prob", "class"), ...)
object |
object of class |
newdata |
a data frame of new observations. |
type |
return either the predicted class or the the proportion of the votes for the winning class. |
... |
additional arguments. |
Either the predicted class or the the proportion of the votes for the winning class.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.