-
Notifications
You must be signed in to change notification settings - Fork 31
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
add nan safe log÷ #2611
add nan safe log÷ #2611
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2611 +/- ##
===========================================
+ Coverage 77.78% 77.80% +0.01%
===========================================
Files 329 329
Lines 21724 21737 +13
Branches 1477 1477
===========================================
+ Hits 16899 16912 +13
Misses 4814 4814
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to have that, but I am slightly worried that this may cover up potential issues in the model.
Depending on how common these issues are, make it optional? Also fine as is for now.
Rather common, happens with Bachmann, Laske, Lucarelli and Weber. For jax we (currently) have to evaluate all possible observables for all timepoints and all loss functions as well as avoid nan values from ever occurring. There might be a smarter way of going about this, this seems reasonable to me. You will still end up with pretty big values (rather than infs/nans) anyways. |
Quality Gate passedIssues Measures |
Add guards to log & divide functions to avoid nans during gradient computation