rknnSupport {rknn} | R Documentation |
Compute support criterion using Random KNN classification or regression
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)
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. |
A supportKNN
object.
Shengqiao Li<lishengqiao@yahoo.com>