-
Notifications
You must be signed in to change notification settings - Fork 3
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
Lbfgs box #131
Conversation
Maybe we should copy the initial value tensor? It might be unexpected that the tensor is changed during the runtime.. |
mypy fails with:
the tests fail because of #174 (not our fault, also tracked on ismrmrd python repo) |
Can we use something like "# type: ignore [type-arg]" here to satisfy mypy if this is due to a problem in 3rd party code? |
Otherwise, I think the code makes sense. You also convinced my that it makes sense to have the |
I addressed some of the review comments regarding the comments ( ;-) ) and added tests for what I think should be illegal bounds.
Some of these seem not to raise an exception in the constraintOp. If they are actually valid, feel free to remove them from the test. |
@koflera : |
* NUFFT * created NonLinearOperator template * first lbfgs with test * changed input of lbfgs to list of params * lbfgs raises error for complex-valued tensors * fixed lbfgs; added adam with sat-recov example for ellipse phantom * fixed tests; removed warning * addressed review points * fixed docstring in mse class * test * fertig * addressed final reviews * fixed mypy complain * removed pytestwarning comment * deleted phantom and commented pytest warning * fixed mse type hint; updated adam and lbfgs docstrings * add test for invalid bounds and address review commnts * rename contraintop test file * fix error introduced by me... * fix typo in comment * allow neginf/posinf as bounds --------- Co-authored-by: koflera <[email protected]> Co-authored-by: koflera <[email protected]> Co-authored-by: Felix <[email protected]>
closes #115