rknn (version 1.0)

rknnSupport: Support Criterion

Description

Compute support criterion using Random KNN classification or regression

Usage

rknnSupport(data, y, k = 1, r = 500, mtry = trunc(sqrt(ncol(data))), 
    fixed.partition = FALSE, Random.seed = NULL, seed = NULL, knn.algo="VR")
rknnRegSupport(data, y, k = k, r = 500, mtry = trunc(sqrt(ncol(data))), 
    fixed.partition = FALSE, Random.seed = NULL, seed = NULL, knn.algo="VR")

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.
Random.seed
A seed in the .Random.seed format.
seed
An integer seed.
knn.algo
nearest neighbor searching algorithm.

Value

  • A supportKNN object.