deephyper.evaluator.callback.Callback#

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

Bases: ABC

Callback interface.

Methods

on_close

Called when the evaluator is being closed.

on_done

Called each time a local Job has been gathered by the Evaluator.

on_done_other

Called after local Job have been gathered for each remote Job that is done.

on_gather

Called after gathering jobs.

on_launch

Called each time a Job is created by the Evaluator.

on_close()[source]#

Called when the evaluator is being closed.

on_done(job: Job)[source]#

Called each time a local Job has been gathered by the Evaluator.

Parameters:

job (Job) – The completed job.

on_done_other(job: Job)[source]#

Called after local Job have been gathered for each remote Job that is done.

Parameters:

job (Job) – The completed Job.

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

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)[source]#

Called each time a Job is created by the Evaluator.

Parameters:

job (Job) – The created job.