-
Notifications
You must be signed in to change notification settings - Fork 301
Cleanup PARAFAC2 tolerances #564
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
Conversation
|
This is ready to review. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #564 +/- ##
==========================================
+ Coverage 87.25% 87.26% +0.01%
==========================================
Files 125 125
Lines 7916 7908 -8
==========================================
- Hits 6907 6901 -6
+ Misses 1009 1007 -2 ☔ View full report in Codecov by Sentry. |
JeanKossaifi
left a comment
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.
Thanks @aarmey sorry just saw you marked it as ready for review.
It looks good, just left some comments - I somehow find type hints more difficult to parse than just signature + doc, especially when it gets nested like Optional[Union[..]...] but I guess it can be nice to have for type check.
|
Great job @aarmey! I haven't done a super thorough review, but it looks great at first glance! I have one question. I see you're using A workaround if we want to use the new syntax is adding a Also, the previous default tolerance of |
I agree that the type annotations can become unwieldy, @JeanKossaifi. I have found them to still be helpful, on balance, because they describe the argument types in a very exact manner:
|
|
Thanks, @JeanKossaifi and @yngvem! I like this plan, so I'll merge this and then follow up with a PR removing Python 3.9 support and simplifying the type annotations. |
Part of #481, this defines the tolerance in PARAFAC2 identically to the PARAFAC methods.
I still need to review the docstrings and explain a few more points justifying this change here.