deephyper.evaluator.callback.LoggerCallback#

class deephyper.evaluator.callback.LoggerCallback[source]#

Bases: 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_close

Called when the evaluator is being closed.

on_done

Called when a local job has been gathered.

on_done_other

Called after gathering local jobs on available remote jobs that are done.

on_gather

Called after gathering jobs.

on_launch

Called each time a Job is created by the Evaluator.

on_close()#

Called when the evaluator is being closed.

on_done(job)[source]#

Called when a local job has been gathered.

on_done_other(job)[source]#

Called after gathering local jobs on available remote jobs that are done.

on_gather(local_jobs: List[Job], other_jobs: List[Job])#

Called after gathering jobs.

Parameters:
  • local_jobs (List[Job]) – gathered jobs from local evaluator instance.

  • other_jobs (List[Job]) – gathered jobs from other evaluators using the same storage.

on_launch(job: Job)#

Called each time a Job is created by the Evaluator.

Parameters:

job (Job) – The created job.