Skip to content

Fix numerical instability in LogitLink.mu (overflow-safe implementation)#560

Open
2024itb047samata wants to merge 2 commits intodswah:mainfrom
2024itb047samata:fix-logit-overflow
Open

Fix numerical instability in LogitLink.mu (overflow-safe implementation)#560
2024itb047samata wants to merge 2 commits intodswah:mainfrom
2024itb047samata:fix-logit-overflow

Conversation

@2024itb047samata
Copy link
Copy Markdown

  • Fixed numerical instability in LogitLink.mu
  • Replaced direct exp(lp) computation with stable formulation
  • Prevents overflow/NaN for large values of lp

This improves model stability for extreme inputs.

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