run.KNN | R Documentation |
Wraper for running random forest classifier
run.KNN(xdata, xlabel, ydata, k = 1)
xdata |
data frame or matrix; data used for training, with sample id in rows and variables in columns |
xlabel |
factor; classification label of the samples, with length equal to the number of rows in xdata |
ydata |
data frame or matrix; data to be predicted the label, same format as xdata |
k |
parameter k of function knn() (default: 1) |
List with the following elements:
ylabel |
ppredicted labels of the samples in ydata |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.