mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 09:24:34 +08:00
RL backtest with simulator (#1299)
* RL backtest with simulator * Minor modification in init_qlib * Cherry pick PR 1302 * Resolve PR comments * Fix missing data processing * Minor bugfix * Add TODOs and docs * Add a comment
This commit is contained in:
@@ -53,7 +53,8 @@ def parse_backtest_config(path: str) -> dict:
|
||||
|
||||
del sys.modules[tmp_module_name]
|
||||
else:
|
||||
config = yaml.safe_load(open(tmp_config_file.name))
|
||||
with open(tmp_config_file.name) as input_stream:
|
||||
config = yaml.safe_load(input_stream)
|
||||
|
||||
if "_base_" in config:
|
||||
base_file_name = config.pop("_base_")
|
||||
|
||||
Reference in New Issue
Block a user