Closed nmichlo closed 3 years ago
This has mostly been implemented in new development versions.
optimizer
can be specified using a string (corresponding to a registered optimiser in the new disent.registry
) or optimiser classoptimizer_kwargs
can be passed in too being a dictionary of kwargs -- by default lr
is always added and set to 1e-3
The current instantiation of Frameworks is terrible, requiring a two callables. One that returns a new optimizer instance and one that returns a new model instance. This is not good for tracking hyper-parameters and overall usability.
Instead opt for a Lightning-Flash style API: