rknn (version 1.2-1)

fitted: Extract Model Fitted Values

Description

Extract Random KNN fitted values.

Usage

"fitted"(object, ...)

Arguments

object
A rknnobject.
...
Additional arguments.

Value

A vector of fitted values.

Examples

## Not run: 
#   golub.train<- t(scale(golubTrain));
#   golub.test<- t(scale(golubTest)); 
#   golub.rnn<- randomKNN(data=golub.train, newdata=golub.test, y=golubTrain.cl,
#      r=821, mtry=55);
#   fitted(golub.rnn)
# ## End(Not run)