fnn_train | R Documentation |
'fnn_train' is a wrapper for 'FNN' fast nearest neighbor models
fnn_train(x, y = NULL, k = 1, algorithm = "kd_tree", ...)
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. |
algorithm |
character, one of c("kd_tree", "cover_tree", "brute"), default = "kd_tree" |
... |
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.