Skip to content

Commit

Permalink
Update qrun to automaticly save the config to the artifacts uri
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhe1234 authored and you-n-g committed Jul 19, 2021
1 parent c97a963 commit 3f5334a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qlib/workflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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
Expand Down

0 comments on commit 3f5334a

Please sign in to comment.