View source: R/subsample_accs.R
Compute average test accuracies ATA_k for 1-nearest neighbor.
1  | sub_accuracies_1nn(Xm, Ym, i_chosen, subKs = 1:nrow(Xm))
 | 
Xm | 
 Matrix of centroids, rows are centroids and columns are dimensions.  | 
Ym | 
 Data matrix, rows are observations and columns are dimensions.  | 
i_chosen | 
 True labels.  | 
subKs | 
 The number of classes k for which we want to calculate ATA_k.  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.