mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 01:06:56 +08:00
Update qrun to automaticly save the config to the artifacts uri
This commit is contained in:
@@ -53,7 +53,8 @@ def workflow(config_path, experiment_name="workflow", uri_folder="mlruns"):
|
|||||||
exp_manager["kwargs"]["uri"] = "file:" + str(Path(os.getcwd()).resolve() / uri_folder)
|
exp_manager["kwargs"]["uri"] = "file:" + str(Path(os.getcwd()).resolve() / uri_folder)
|
||||||
qlib.init(**config.get("qlib_init"), exp_manager=exp_manager)
|
qlib.init(**config.get("qlib_init"), exp_manager=exp_manager)
|
||||||
|
|
||||||
task_train(config.get("task"), experiment_name=experiment_name)
|
recorder = task_train(config.get("task"), experiment_name=experiment_name)
|
||||||
|
recorder.save_objects(config=config)
|
||||||
|
|
||||||
|
|
||||||
# function to run worklflow by config
|
# function to run worklflow by config
|
||||||
|
|||||||
Reference in New Issue
Block a user