Пример #1
0
 def _on_done(job):  # def _on_done(job, process_data):
     output = job.read_file_in_workdir(f'{job.name}.out')
     # process_data(job)
     #args = job.args
     #args = args.replace("\'", "")
     # with open('test.json', 'w') as f:
     #    f.write(args)
     #
     # with open('test.json', 'r') as f:
     #    args = json.load(f)
     output = Evaluator._parse(output)
     #job.data['reward'] = output
     #job.data['arch_seq'] = args['arch_seq']
     #job.data['id_worker'] = args['w']
     # job.save()
     return output
Пример #2
0
 def _on_done(job):
     if "dh_objective" in job.data:
         return job.data["dh_objective"]
     output = job.read_file_in_workdir(f"{job.name}.out")
     output = Evaluator._parse(output)
     return output