mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 08:16:54 +08:00
Migrate amc4th training (#1316)
* Migrate amc4th training * Refine RL example scripts * Resolve PR comments Co-authored-by: luocy16 <luocy16@mails.tsinghua.edu.cn>
This commit is contained in:
53
examples/rl/experiment_config/backtest/config.py
Normal file
53
examples/rl/experiment_config/backtest/config.py
Normal file
@@ -0,0 +1,53 @@
|
||||
_base_ = ["./twap.yml"]
|
||||
|
||||
strategies = {
|
||||
"_delete_": True,
|
||||
"30min": {
|
||||
"class": "TWAPStrategy",
|
||||
"module_path": "qlib.contrib.strategy.rule_strategy",
|
||||
"kwargs": {},
|
||||
},
|
||||
"1day": {
|
||||
"class": "SAOEIntStrategy",
|
||||
"module_path": "qlib.rl.order_execution.strategy",
|
||||
"kwargs": {
|
||||
"state_interpreter": {
|
||||
"class": "FullHistoryStateInterpreter",
|
||||
"module_path": "qlib.rl.order_execution.interpreter",
|
||||
"kwargs": {
|
||||
"max_step": 8,
|
||||
"data_ticks": 240,
|
||||
"data_dim": 6,
|
||||
"processed_data_provider": {
|
||||
"class": "PickleProcessedDataProvider",
|
||||
"module_path": "qlib.rl.data.pickle_styled",
|
||||
"kwargs": {
|
||||
"data_dir": "./data/pickle_dataframe/feature",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"action_interpreter": {
|
||||
"class": "CategoricalActionInterpreter",
|
||||
"module_path": "qlib.rl.order_execution.interpreter",
|
||||
"kwargs": {
|
||||
"values": 14,
|
||||
"max_step": 8,
|
||||
},
|
||||
},
|
||||
"network": {
|
||||
"class": "Recurrent",
|
||||
"module_path": "qlib.rl.order_execution.network",
|
||||
"kwargs": {},
|
||||
},
|
||||
"policy": {
|
||||
"class": "PPO",
|
||||
"module_path": "qlib.rl.order_execution.policy",
|
||||
"kwargs": {
|
||||
"lr": 1.0e-4,
|
||||
"weight_file": "./checkpoints/latest.pth",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user