syne_tune.callbacks package
- class syne_tune.callbacks.TensorboardCallback(ignore_metrics=None, target_metric=None, mode=None, log_hyperparameters=True)[source]
Bases:
TunerCallback
Logs relevant metrics reported from trial evaluations, so they can be visualized with Tensorboard.
- Parameters:
ignore_metrics (
Optional
[List
[str
]]) – Defines which metrics should be ignored. If None, all metrics are reported to Tensorboard.target_metric (
Optional
[str
]) – Defines the metric we aim to optimize. If this argument is set, we report the cumulative optimum of this metric as well as the optimal hyperparameters we have found so far.mode (
Optional
[str
]) – Determined whether we maximize (“max”) or minimize (“min”) the target metric.log_hyperparameters (
bool
) – If set to True, we also log all hyperparameters specified in the configurations space.
- on_trial_result(trial, status, result, decision)[source]
Called when a new result (reported by a trial) is observed
The arguments here are inputs or outputs of
scheduler.on_trial_result
(called just before).- Parameters:
trial (
Trial
) – Trial whose report has been receivedstatus (
str
) – Status of trial beforescheduler.on_trial_result
has been calledresult (
Dict
[str
,Any
]) – Result dict receiveddecision (
str
) – Decision returned byscheduler.on_trial_result
Submodules
- syne_tune.callbacks.hyperband_remove_checkpoints_callback module
TrialStatus
BetaBinomialEstimator
TrialInformation
HyperbandRemoveCheckpointsCommon
HyperbandRemoveCheckpointsCommon.on_tuning_start()
HyperbandRemoveCheckpointsCommon.num_checkpoints_removed
HyperbandRemoveCheckpointsCommon.on_loop_end()
HyperbandRemoveCheckpointsCommon.on_trial_complete()
HyperbandRemoveCheckpointsCommon.on_trial_result()
HyperbandRemoveCheckpointsCommon.on_start_trial()
HyperbandRemoveCheckpointsCommon.on_resume_trial()
HyperbandRemoveCheckpointsCommon.trials_resumed_without_checkpoint()
HyperbandRemoveCheckpointsCommon.extra_results()
HyperbandRemoveCheckpointsCommon.extra_results_keys()
HyperbandRemoveCheckpointsCallback
HyperbandRemoveCheckpointsBaselineCallback
- syne_tune.callbacks.hyperband_remove_checkpoints_score module
- syne_tune.callbacks.remove_checkpoints_callback module
- syne_tune.callbacks.tensorboard_callback module