deephyper.evaluator.callback.CSVLoggerCallback#
- class deephyper.evaluator.callback.CSVLoggerCallback(path: str = 'results.csv')[source]#
Bases:
CallbackDump jobs done to a CSV file.
- Parameters:
path (str) – The path where the CSV is being dumped.
Methods
Dump completed jobs to a CSV file.
Called when the evaluator is being closed.
Called each time a local
Jobhas been gathered by the Evaluator.Called after local
Jobhave been gathered for each remoteJobthat is done.Called after gathering jobs.
Called each time a
Jobis created by theEvaluator.- dump_jobs_done_to_csv(path: str, flush: bool = False)[source]#
Dump completed jobs to a CSV file.
This will reset the
Evaluator.jobs_doneattribute to an empty list.
- on_done(job: Job)#
Called each time a local
Jobhas been gathered by the Evaluator.- Parameters:
job (Job) – The completed job.
- on_done_other(job: Job)#
Called after local
Jobhave been gathered for each remoteJobthat is done.- Parameters:
job (Job) – The completed Job.