-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refactor: Handling Unrecognized Arguments for Prepare #696
Conversation
for more information, see https://pre-commit.ci
…timate_marginals kwargs
…y creating issues as this commit too big
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
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.
fantastic work @selmanozleyen !
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.
Really great work Selman! Thanks so much!
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@MUCDK the problem is even though 3.10 passes 3.9 now fails. The results change between these versions |
Ok can we skip the test for python 3.9? |
Sure will update the tests in a new PR then |
These are the things I want to do first. related: #596
From reading through ottjax only the
__call__
functions on solvers absorb kwargs that aren't recognized. And they are because either they are given to create_geometry methods or create_initializer methods:So this is kind of good news because from what I read from moscot, call_fn arguments are filtered before here:
moscot/src/moscot/base/solver.py
Lines 145 to 164 in e21677e
Overall this means:
prepare
methods absorbing kwargs ourselves in moscot, by simply removing the usage of kwargs in concrete classes, so I will dedicate this PR to itsolve
we will need to refactor things from ottjax. It won't be too hard and I already spotted where they are being ignored. If we refactor ottjax we might not need any changes in moscot since the error will be thrown from there.Related issues (will be closed after merge):
scale_cost
given to prepare in tests/problems/time/test_mixins.py #701I separated some issues from this PR so that we can work on them later:
Now that the tests pass these are the things to do:
handle_joint_attr
)