rknn_train | R Documentation |
'rknn_train' is a wrapper for 'rknn' fast nearest neighbor models
rknn_train(x, y = NULL, k = 1, r = 500, mtry = trunc(sqrt(ncol(x))), ...)
x |
a data frame or matrix of predictors. |
y |
a vector (factor or numeric) or matrix (numeric) of outcome data. |
k |
a vector (integer) of the number of neighbours to consider. |
r |
an integer specifying the number of KNN models containing random feature subsets. Default = 500. |
mtry |
an integer with the number of features to randomly select per KNN model. Default is 'trunc(sqrt(ncol(x)))'. |
... |
additional arguments to pass to FNN, currently unused. |
list containing the FNN call
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.