You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
I'm trying to implement an early stopping hook that interacts with other custom hooks that I have implemented, but I'm having trouble of getting a sensible way of sending a stop signal to the ClassyTrainer.
The only way I managed to get it working was this:
Yea, I agree this is hacky. There's no better solution right now.
We could add an exception that would be used to exit training, and that would make this much cleaner. I was considering doing that for other reasons anyway -- let's try to get this on the v0.3 release.
On another note: instead of making a hook for early stopping, I would probably consider overriding ClassificationTask.on_phase_end and add whatever logic is needed there.
On another note: instead of making a hook for early stopping, I would probably consider overriding ClassificationTask.on_phase_end and add whatever logic is needed there.
You mean as a solution for now, or as a permanent solution?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
❓ Questions and Help
I'm trying to implement an early stopping hook that interacts with other custom hooks that I have implemented, but I'm having trouble of getting a sensible way of sending a stop signal to the ClassyTrainer.
The only way I managed to get it working was this:
Is there a cleaner way of achieving this in the current state of the project?
The text was updated successfully, but these errors were encountered: