rknnSupport: Support Criterion

Description Usage Arguments Value Author(s)

View source: R/backward_selection.R

Description

Compute support criterion using Random KNN classification or regression

Usage

1
2
3
4
rknnSupport(data, y, k = 1, r = 500, mtry = trunc(sqrt(ncol(data))), 
    fixed.partition = FALSE, cluster=NULL, seed = NULL)
rknnRegSupport(data, y, k = k, r = 500, mtry = trunc(sqrt(ncol(data))), 
    fixed.partition = FALSE, cluster=NULL, seed = NULL)

Arguments

data

The input dataset.

y

A vector of responses.

k

Number of nearest neighbors.

r

Number of KNNs.

mtry

Number of features to be drawn for each KNN.

fixed.partition

Logical. Use fixed partition of dynamic partition of the data into training and testing subsets for each KNN.

cluster

An object of class ‘c("SOCKcluster", "cluster")’

seed

An integer seed.

Value

A supportKNN object.

Author(s)

Shengqiao Li<[email protected]>


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