Skip to content

Fix LogitLink.mu numerical instability (#534)#537

Open
hritikkumarpradhan wants to merge 5 commits intodswah:mainfrom
hritikkumarpradhan:fix-logitlink-issue-534
Open

Fix LogitLink.mu numerical instability (#534)#537
hritikkumarpradhan wants to merge 5 commits intodswah:mainfrom
hritikkumarpradhan:fix-logitlink-issue-534

Conversation

@hritikkumarpradhan
Copy link
Copy Markdown

Fixes #534. Replaced naive np.exp logic with scipy.special.expit to prevent NaN predictions for large linear predictors. Added soft-clipping to LogitLink.gradient to prevent division by zero. Added test coverage for numerical stability.

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] Numerical instability and NaN predictions in LogitLink.mu

1 participant