JuliaStats / Lasso.jl

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

Fix dropcollinear issue with an empty nullmodel #73

Closed AsafManela closed 1 year ago

AsafManela commented 1 year ago

Starting with GLM v1.8.1 fit() passes dropcollinear=true by default. Lasso uses GLM.fit() to build a nullmodel with unregularized X variables. When this matrix had zero columns, dropcollinear would check for its rank and get a very large number causing issues. We now do not dropcollinear when size(X,2)==0.

Because the dropping of collinear unregularized columns is a change in behavior, I am bumping up the version accordingly.