mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-10 22:36:55 +08:00
online serving V9 middle status
This commit is contained in:
@@ -25,6 +25,7 @@ def begin_task_train(task_config: dict, experiment_name: str, *args, **kwargs) -
|
||||
Returns:
|
||||
Recorder
|
||||
"""
|
||||
# FIXME: recorder_id
|
||||
with R.start(experiment_name=experiment_name, recorder_name=str(time.time())):
|
||||
R.log_params(**flatten_dict(task_config))
|
||||
R.save_objects(**{"task": task_config}) # keep the original format and datatype
|
||||
@@ -112,6 +113,9 @@ class Trainer:
|
||||
"""
|
||||
pass
|
||||
|
||||
def is_delay(self):
|
||||
return False
|
||||
|
||||
|
||||
class TrainerR(Trainer):
|
||||
"""Trainer based on (R)ecorder.
|
||||
@@ -240,6 +244,9 @@ class DelayTrainerR(TrainerR):
|
||||
end_train_func(rec)
|
||||
return recs
|
||||
|
||||
def is_delay(self):
|
||||
return True
|
||||
|
||||
|
||||
class DelayTrainerRM(TrainerRM):
|
||||
"""
|
||||
@@ -286,3 +293,6 @@ class DelayTrainerRM(TrainerRM):
|
||||
before_status=TaskManager.STATUS_PART_DONE,
|
||||
)
|
||||
return recs
|
||||
|
||||
def is_delay(self):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user