Skip to content

[Discussion] Callback interface/architechture #1592

@SkafteNicki

Description

@SkafteNicki

PR #1544 opened the discussion that aspects of the callback interface needs to be rethink. This issue will keep track of future discussion. From the PR, these points were made:

  1. Trainer callback arguments: Currently there are 3 arguments in trainer (callback, early_stopping_callback and checkpoint_callback). It should be discussed what the user can pass to the different arguments. Mostly it seems that people are in favor of only allowing bool arguments for early_stopping_callback and checkpoint_callback, which will add a default version of the respective callback. Anything else should be passed on callback

  2. Callback order: As pointed out early stopping needs to be called before model checkpoint, because modelcheckpoint save early stopping callback stats. This implies that some form of dependency tree should be implemented to callback interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    won't fixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions