JuliaStats / Lasso.jl

Lasso/Elastic Net linear and generalized linear models
Other
143 stars 31 forks source link

Have selectmodel, segselect, and coef accept keywords #44

Closed lstagner closed 4 years ago

lstagner commented 4 years ago

This is a partial fix for #42. The cross validation was hitting a bounds error because the maximum number of coefficients was exceeded, even though I set maxncoef to be larger in the call to fit. This doesn't fix the bounds error, which by my reading of the code shouldn't happen, but it makes it so that you can pass a larger maxncoef to the model selection routines so the error isn't triggered.

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 186


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/segselect.jl 6 7 85.71%
<!-- Total: 6 7 85.71% -->
Totals Coverage Status
Change from base Build 184: 2.7%
Covered Lines: 585
Relevant Lines: 655

💛 - Coveralls
coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 186


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/segselect.jl 6 7 85.71%
<!-- Total: 6 7 85.71% -->
Totals Coverage Status
Change from base Build 184: 1.2%
Covered Lines: 575
Relevant Lines: 655

💛 - Coveralls
AsafManela commented 4 years ago

Thank you!