Conversation
|
Overall looks good, I like this solution :) I just promoted the
I will also pull into diffractive_imaging to make any changes required for ptycho (but cuz we're allowing backwards compatibility it shouldn't break anything? might just make the type checker angry) |
|
@arthurmccray re: #186 (comment) Added back in Happy to change this convention though. |
|
lgtm |
arthurmccray
left a comment
There was a problem hiding this comment.
Tested with iterative ptycho and some notebooks and seems to be working, thanks for adding the tests.
What problem does this PR address?
Optimizer and scheduler parameter initialization has been using dictionaries making type-hinting difficult. This PR implements a nested class in
core/ml/optimizer_mixin.pywith dataclasses to allow for clean type-hinting.What should the reviewer(s) do?
tomography_opt.pyfile would allow for OptimizerType changes.Example to the last checkbox:
Notebook
opt_sched_type_hinting.ipynb