-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be nice to have callbacks for BaseOptimizer or BaseExperiment.
One common use case is logging the sequence of parameters and parameter values obtained throughout the optimization.
My current thinking is, the best place to inject callbacks is the boilerplate layer of evaluate in BaseExperiment.
When called from within BaseOptimizer, it logs to a singleton or multiton attached to the optimizer instance, or to a logger attached to the optimizer.
How are callbacks passed? I can see a few options:
- through
set_configwith acallbackorcallback_pre/callback_postfield - as
__init__arguments, though that would require that all experiments and optimizers have to take it (which might be invasive)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request