predict.ipredknn

0th

Percentile

Predictions from k-Nearest Neighbors

Predict the class of a new observation based on k-NN.

Keywords
multivariate
Usage
"predict"(object, newdata, type=c("prob", "class"), ...)
Arguments
object
object of class ipredknn.
newdata
a data frame of new observations.
type
return either the predicted class or the the proportion of the votes for the winning class.
...
Details

This function is a method for the generic function predict for class ipredknn. For the details see knn.

Value

Either the predicted class or the the proportion of the votes for the winning class.

Aliases
• predict.ipredknn
Documentation reproduced from package ipred, version 0.9-5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.