Skip to content

Fix dropcollinear issue with an empty nullmodel#73

Merged
AsafManela merged 2 commits intoJuliaStats:masterfrom
AsafManela:master
Nov 29, 2022
Merged

Fix dropcollinear issue with an empty nullmodel#73
AsafManela merged 2 commits intoJuliaStats:masterfrom
AsafManela:master

Conversation

@AsafManela
Copy link
Collaborator

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.

@AsafManela AsafManela merged commit 37994e9 into JuliaStats:master Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant