MCPcopy Index your code
hub / github.com/microsoft/qlib / reset

Method reset

examples/model_rolling/task_manager_rolling.py:55–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53
54 # Reset all things to the first status, be careful to save important data
55 def reset(self):
56 print("========== reset ==========")
57 if isinstance(self.trainer, TrainerRM):
58 TaskManager(task_pool=self.task_pool).remove()
59 exp = R.get_exp(experiment_name=self.experiment_name)
60 for rid in exp.list_recorders():
61 exp.delete_recorder(rid)
62
63 def task_generating(self):
64 print("========== task_generating ==========")

Callers 1

mainMethod · 0.95

Calls 5

TaskManagerClass · 0.90
removeMethod · 0.45
get_expMethod · 0.45
list_recordersMethod · 0.45
delete_recorderMethod · 0.45

Tested by

no test coverage detected