nvecs
and hidden
sparseness
parameters. The user should select the cthresh
regularization parameters for his or her application. The principle used
here is that we want few but sparse pseudo-eigenvectors that are minimally
correlated in row-space. true left and right eigenvectors are uncorrelated
in both row and column (left and right eigenvector) spaces, but this is not
the case when we impose sparsity.
eanatSelect(inmat, mask = NA, cthresh = 0, smooth = 0, maxNEvec = 0, selectorScale = 1.1, verbose = FALSE)
nvecs
nvecs
and tries
to find the knee in the correlation plot. This parameter produces fewer,
less sparse eigenanatomy pseudo-eigenvectors as its value increases. Its
minimum value is 1 and a reasonable range is between 1 and 2. The user
should look at the plot produced when verbosity is turned on.nvecs
in
svd(mat,nu=0,nv=nvecs)
mat <- matrix(rnorm(2000),ncol=50)
nvecsSel<-eanatSelect( mat, selectorScale = 1.2, maxNEvec = 4 )
esol <- sparseDecom( mat, nvecs = nvecsSel )
print(paste("selected", nvecsSel,'pseudo-eigenvectors'))
Run the code above in your browser using DataLab