abess-team / abess

Fast Best-Subset Selection Library
https://abess.readthedocs.io/
Other
474 stars 41 forks source link

Fix bug if there is only one variable #451

Closed bbayukari closed 2 years ago

bbayukari commented 2 years ago

program go wrong if there is only one variable in multinomial or ordinal model in R.

codecov[bot] commented 2 years ago

Codecov Report

Merging #451 (f6f9abc) into master (df2c56b) will decrease coverage by 3.64%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
- Coverage   93.52%   89.88%   -3.65%     
==========================================
  Files          29        9      -20     
  Lines        3212     1186    -2026     
==========================================
- Hits         3004     1066    -1938     
+ Misses        208      120      -88     
Flag Coverage Δ
Python 89.88% <ø> (ø)
rpackage ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
R-package/R/abess.R
R-package/R/print.abesspca.R
R-package/R/plot.abess.R
R-package/R/predict.abess.R
R-package/R/generate.spc.matrix.R
R-package/R/plot.abesspca.R
R-package/R/abessrpca.R
R-package/R/abesspca.R
R-package/R/deviance.abess.R
R-package/R/generate.data.R
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Mamba413 commented 2 years ago

Thanks! I have updated code following your PR.