Replies: 5 comments 6 replies
-
@cweniger Agree this feature is highly needed to be implemented as default without having to add external code every time. |
Beta Was this translation helpful? Give feedback.
-
@cweniger @NoemiAM I agree also that this is very helpful to have. I agree with Noemi especially for the reason that the point of having this implemented is so people don't have to worry about implementing themselves. Of course, we can make it clear how to play around with it for more "advanced" users, but the less objects people need to worry about the better probably? |
Beta Was this translation helpful? Give feedback.
-
One reason to not have this directly implemented as part of |
Beta Was this translation helpful? Give feedback.
-
I pushed another version. Now the defaults are all inside the |
Beta Was this translation helpful? Give feedback.
-
@NoemiAM @james-alvey-42 I pushed a new version of updates.
Let me know what you think. For now I only updated the 0A-* notebook to reflect the changes (in the feat/better_defaults branch). I guess one thing I'm interested in is whether these updates are consistent with your use-cases, or if there are collisions. |
Beta Was this translation helpful? Give feedback.
-
I have added a StandardOptimizer class that can be simply used as (see feat/better_defaults branch)
and that automatically configures Adam, EarlyStopping, and ReduceLROnPlateau with reasonable defaults. One can overwrite the defaults with, e.g.,
self.lr = 1e-4
in the module__init__
. In the long term, this could replace the current way of configuring things. But for now it is just a very simple addition.@NoemiAM @james-alvey-42 Please let me know if there are any thoughts. We certainly have to update notebooks for that at some point, but right now I'm mostly interested in whether you agree with the general structure.
One of the reasons to add this EarlyStopping, LR decay etc as default is that the quality of the results massively depends on using these features. If the default is just Adam with a fixed learning rate, results are not very convincing and there is some annoying boiler plate code that one has to add all the time.
master...feat/better_defaults
Beta Was this translation helpful? Give feedback.
All reactions