predict.knn3

0th

Percentile

Predictions from k-Nearest Neighbors

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

Keywords
multivariate
Usage
## S3 method for class 'knn3':
predict(object, newdata, type=c("prob", "class"), ...)
Details

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.

Value

  • Either the predicted class or the the proportion of the votes for each class.

Aliases
Documentation reproduced from package caret, version 5.07-001, License: GPL-2

Community examples

Looks like there are no examples yet.