Classification Extrapolation with Regression (and bootstrap model selection) for 1 nearest neighbor
1 2 | ClassExReg1nn(Xm, Ym, i_chosen, basis_sets, Ktrain = 2:nrow(Xm), nboot = 25,
nonnegative = TRUE)
|
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. |
basis_sets |
a list of bases obtained e.g. using lapply and get_gaussian_basis_mat. If there is only one element in the list, then model selection is not applied. |
Ktrain |
the number of classes k for which we have computed average test accuracies ATA_k. |
nboot |
Number of bootstrap samples to use in model selection. |
nonnegative |
constrain coefficients of basis to be nonnegative? default TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.