ClassExReg1nn: Classification Extrapolation with Regression (and bootstrap...

Description Usage Arguments

View source: R/ClassExReg.R

Description

Classification Extrapolation with Regression (and bootstrap model selection) for 1 nearest neighbor

Usage

1
2
ClassExReg1nn(Xm, Ym, i_chosen, basis_sets, Ktrain = 2:nrow(Xm), nboot = 25,
  nonnegative = TRUE)

Arguments

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.


snarles/ClassEx documentation built on May 6, 2019, 9:55 a.m.