CrossValidateKNN: Cross validation to find the optimal k

View source: R/mapping.R

CrossValidateKNNR Documentation

Cross validation to find the optimal k

Description

Cross validation to find the optimal k

Usage

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 Aug. 24, 2023, 2:26 a.m.