deephyper.evaluator.callback.LoggerCallback

deephyper.evaluator.callback.LoggerCallback

class deephyper.evaluator.callback.LoggerCallback[source]

Bases: deephyper.evaluator.callback.Callback

Print information when jobs are completed by the Evaluator.

An example usage can be:

>>> evaluator.create(method="ray", method_kwargs={..., "callbacks": [LoggerCallback()]})

Methods

on_done

Called each time a Job is completed by the Evaluator.

on_launch

Called each time a Job is created by the Evaluator.

on_done(job)[source]

Called each time a Job is completed by the Evaluator.

Parameters

job (Job) – The completed job.

on_launch(job)

Called each time a Job is created by the Evaluator.

Parameters

job (Job) – The created job.