Extract Model Fitted Values

Description

Extract Random KNN fitted values.

Usage

1
2
## S3 method for class 'rknn'
fitted(object, ...)

Arguments

object

A rknnobject.

...

Additional arguments.

Value

A vector of fitted values.

Author(s)

Shengqiao Li<lishengqiao@yahoo.com>

Examples

1
2
3
4
5
6
7
8
## 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)