You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All types of tune go wrong in PCA model, include "gic", "aic", "bic", "ebic" and "cv". Specifically, all information metric methods return 0; the result of "cv" method monotonically decreases as support_size increases so it's useless for selecting support_size.
Code for Reproduction
n<-10000p<-5support_size<-3dataset<- generate.spc.matrix(n, p, support_size, snr=100, seed=1)
for(ic_typein c("gic", "aic", "bic", "ebic")){
spca_fit<- abesspca(dataset[["x"]], tune.type=ic_type)
if(all(spca_fit[["tune.value"]] ==0)){
print(sprintf("tune.value of %s is all zero!", ic_type))
}
}
spca_fit2<- abesspca(dataset[["x"]], tune.type="cv")
if(!is.unsorted(-spca_fit2[["tune.value"]])){
print("tune.value of cv is sorted!")
}
Results:
[1] "tune.value of gic is all zero!"
[1] "tune.value of aic is all zero!"
[1] "tune.value of bic is all zero!"
[1] "tune.value of ebic is all zero!"
[1] "tune.value of cv is sorted!"
Desktop (please complete the following information):
OS: x86_64-w64-mingw32
R version 4.2.1
Package Version 0.4.6
The text was updated successfully, but these errors were encountered:
Describe the bug
All types of tune go wrong in PCA model, include "gic", "aic", "bic", "ebic" and "cv". Specifically, all information metric methods return 0; the result of "cv" method monotonically decreases as
support_size
increases so it's useless for selectingsupport_size
.Code for Reproduction
Results:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: