caret (version 5.05.004)

predict.knnreg: Predictions from k-Nearest Neighbors Regression Model

Description

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

Usage

## S3 method for class 'knnreg':
predict(object, newdata, ...)

Arguments

Value

  • a numeric vector

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.