CrossValidateKNN | R Documentation |
Cross validation to find the optimal k
CrossValidateKNN(train.knn, k.range, n.folds = 4, seed = NULL,
n.cores = 4)
train.knn |
List output of TrainKNN with gene expression matrix, PCs, and reference ident |
k.range |
Range of k values to test |
n.folds |
Number of folds to split the data |
seed |
Random seed for splitting folds |
n.cores |
Number of multithreading cores |
List of k value accuracies and the optimal k
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.