CrossValidateKNN: Cross validation to find the optimal k

Description Usage Arguments Value

View source: R/mapping.R

Description

Cross validation to find the optimal k

Usage

1
2
CrossValidateKNN(train.knn, k.range, n.folds = 4, seed = NULL,
  n.cores = 4)

Arguments

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

Value

List of k value accuracies and the optimal k


yanwu2014/cellMapper documentation built on Nov. 14, 2019, 5:04 a.m.