1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 14:01:28 +08:00
Files
qlib/examples
Guodong Xu d66733c358 examples/workflow_by_code.ipynd: fix an error in R.get_recorder() parameters
get_recorder() needs specify 'recorder_id='. However workflow_by_code.ipynd
didn't. This patch fixes it.

Without this fix, here is the error message jupyter-notebook reports:

"---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

<ipython-input-7-e6a7b5f4da00> in <module>
26 # backtest and analysis
27 with R.start(experiment_name="backtest_analysis"):
---> 28 recorder = R.get_recorder(rid, experiment_name="train_model")
29 model = recorder.load_object("trained_model")
30

TypeError: get_recorder() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given"

Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2021-06-26 18:25:47 +08:00
..
2021-06-25 16:12:50 +08:00
2021-06-02 08:56:15 +00:00
2020-12-17 00:35:35 +08:00

Requirements

Here is the minimal hardware requirements to run the workflow_by_code example.

  • Memory: 16G
  • Free Disk: 5G

NOTE

The results will slightly vary on different OSs(the variance of annualized return will be less than 2%). The evaluation results in the README.md page are from Linux OS.