Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG initialize beta_init when the design matrix is not full rank #281

Merged
merged 1 commit into from
May 21, 2024

Conversation

BorisMuzellec
Copy link
Collaborator

Reference Issue or PRs

Fixes #280

What does your PR implement? Be specific.

Initialize beta_init in irls even when the design matrix is not full rank.

This prevents a referenced before assignment error in the case where irls is run with a rank-deficient design matrix and irls starts diverging.

Copy link
Collaborator

@jeandut jeandut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BorisMuzellec BorisMuzellec merged commit 663225b into main May 21, 2024
15 checks passed
@BorisMuzellec BorisMuzellec deleted the fix_beta_init branch May 21, 2024 09:43
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.

[BUG] local variable 'beta_init' referenced before assignment
2 participants