predict.knnreg

0th

Percentile

Predictions from k-Nearest Neighbors Regression Model

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

Keywords
multivariate
Usage
## S3 method for class 'knnreg':
predict(object, newdata, ...)
Arguments
object
object of class knnreg.
newdata
a data frame or matrix of new observations.
...
additional arguments.
Details

This function is a method for the generic function predict for class knnreg. For the details see knnreg. This is essentially a copy of predict.ipredknn.

Value

  • a numeric vector

Aliases
  • predict.knnreg
Documentation reproduced from package caret, version 5.15-052, License: GPL-2

Community examples

Looks like there are no examples yet.