1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

fix some typo and bug

This commit is contained in:
Young
2020-11-26 08:42:54 +00:00
parent d780daaa87
commit e2935f214a
6 changed files with 11 additions and 10 deletions

View File

@@ -31,7 +31,8 @@
")\n",
"from qlib.utils import exists_qlib_data, init_instance_by_config\n",
"from qlib.workflow import R\n",
"from qlib.workflow.record_temp import SignalRecord, PortAnaRecord"
"from qlib.workflow.record_temp import SignalRecord, PortAnaRecord\n",
"from qlib.utils import flatten_dict"
]
},
{
@@ -129,7 +130,7 @@
"\n",
"# start exp to train model\n",
"with R.start(experiment_name=\"train_model\"):\n",
" R.log_paramters(**flatten_dict(task))\n",
" R.log_params(**flatten_dict(task))\n",
" model.fit(dataset)\n",
" R.save_objects(trained_model=model)\n",
" rid = R.get_recorder().id\n"
@@ -337,4 +338,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}