fitted.rknn: Extract Model Fitted Values

Description Usage Arguments Value Author(s) Examples

View source: R/fitted.R

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)

rknn documentation built on May 30, 2017, 3:33 a.m.

Related to fitted.rknn in rknn...