Skip to content

Conversation

@AdityaPandeyCN
Copy link

This PR aims to address #158 and plans to add callback hooks to BaseExperiment.evaluate and BaseOptimizer.solve, configurable via set_config.

Callback hooks:

  • callbacks_pre / callbacks_post for experiment evaluations
  • callbacks_pre_solve / callbacks_post_solve for optimizer runs

Built-in callbacks:

  • HistoryCallback: records params, result, metadata for each evaluation
  • LoggingCallback: logs evaluations to console or logger
  • SleepCallback: adds delay after evaluations (for testing/simulation)
  • TargetReachedCallback: tracks if a target score has been reached

…e-project#158)

- callbacks_pre/callbacks_post in BaseExperiment.evaluate()
- callbacks_pre_solve/callbacks_post_solve in BaseOptimizer.solve()
- Built-in callbacks: HistoryCallback, LoggingCallback, SleepCallback, TargetReachedCallback
- Tests in test_callbacks.py
Signed-off-by: AdityaPandeyCN <adityapand3y666@gmail.com>
@AdityaPandeyCN
Copy link
Author

@SimonBlanke Can you have a look if time permits?

Signed-off-by: AdityaPandeyCN <adityapand3y666@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant