mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 00:36:55 +08:00
yaml update
This commit is contained in:
committed by
you-n-g
parent
cbe7c5285a
commit
bd6080b8f5
@@ -34,19 +34,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: ALSTM
|
class: ALSTM
|
||||||
@@ -81,13 +96,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: ALSTM
|
class: ALSTM
|
||||||
@@ -71,13 +86,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -12,19 +12,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: CatBoostModel
|
class: CatBoostModel
|
||||||
@@ -53,13 +68,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -19,19 +19,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: CatBoostModel
|
class: CatBoostModel
|
||||||
@@ -60,13 +75,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -12,19 +12,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DEnsembleModel
|
class: DEnsembleModel
|
||||||
@@ -75,16 +90,21 @@ task:
|
|||||||
train: [2008-01-01, 2014-12-31]
|
train: [2008-01-01, 2014-12-31]
|
||||||
valid: [2015-01-01, 2016-12-31]
|
valid: [2015-01-01, 2016-12-31]
|
||||||
test: [2017-01-01, 2020-08-01]
|
test: [2017-01-01, 2020-08-01]
|
||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -19,19 +19,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DEnsembleModel
|
class: DEnsembleModel
|
||||||
@@ -82,16 +97,21 @@ task:
|
|||||||
train: [2008-01-01, 2014-12-31]
|
train: [2008-01-01, 2014-12-31]
|
||||||
valid: [2015-01-01, 2016-12-31]
|
valid: [2015-01-01, 2016-12-31]
|
||||||
test: [2017-01-01, 2020-08-01]
|
test: [2017-01-01, 2020-08-01]
|
||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -33,19 +33,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GATs
|
class: GATs
|
||||||
@@ -80,13 +95,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GATs
|
class: GATs
|
||||||
@@ -72,13 +87,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -34,19 +34,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GRU
|
class: GRU
|
||||||
@@ -80,13 +95,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GRU
|
class: GRU
|
||||||
@@ -70,13 +85,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -34,19 +34,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LSTM
|
class: LSTM
|
||||||
@@ -80,13 +95,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LSTM
|
class: LSTM
|
||||||
@@ -70,13 +85,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -12,19 +12,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LGBModel
|
class: LGBModel
|
||||||
@@ -54,13 +69,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -19,19 +19,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LGBModel
|
class: LGBModel
|
||||||
@@ -61,13 +76,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -27,19 +27,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LGBModel
|
class: LGBModel
|
||||||
@@ -69,13 +84,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LinearModel
|
class: LinearModel
|
||||||
@@ -57,16 +72,21 @@ task:
|
|||||||
train: [2008-01-01, 2014-12-31]
|
train: [2008-01-01, 2014-12-31]
|
||||||
valid: [2015-01-01, 2016-12-31]
|
valid: [2015-01-01, 2016-12-31]
|
||||||
test: [2017-01-01, 2020-08-01]
|
test: [2017-01-01, 2020-08-01]
|
||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: True
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -39,19 +39,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DNNModelPytorch
|
class: DNNModelPytorch
|
||||||
@@ -83,13 +98,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -27,19 +27,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DNNModelPytorch
|
class: DNNModelPytorch
|
||||||
@@ -70,13 +85,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: SFM
|
class: SFM
|
||||||
@@ -73,13 +88,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -30,19 +30,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TCTS
|
class: TCTS
|
||||||
@@ -81,13 +96,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
@@ -14,19 +14,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TFTModel
|
class: TFTModel
|
||||||
@@ -46,13 +61,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TabnetModel
|
class: TabnetModel
|
||||||
@@ -63,13 +78,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -26,19 +26,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TabnetModel
|
class: TabnetModel
|
||||||
@@ -63,13 +78,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -12,19 +12,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: XGBModel
|
class: XGBModel
|
||||||
@@ -52,13 +67,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
@@ -19,19 +19,34 @@ data_handler_config: &data_handler_config
|
|||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
module_path: qlib.contrib.strategy.strategy
|
module_path: qlib.contrib.strategy
|
||||||
kwargs:
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
topk: 50
|
topk: 50
|
||||||
n_drop: 5
|
n_drop: 5
|
||||||
backtest:
|
backtest:
|
||||||
verbose: False
|
start_time: 2017-01-01
|
||||||
limit_threshold: 0.095
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
deal_price: close
|
executor:
|
||||||
open_cost: 0.0005
|
class: NestedExecutor
|
||||||
close_cost: 0.0015
|
module_path: qlib.backtest.executor
|
||||||
min_cost: 5
|
kwargs:
|
||||||
|
time_per_step: week
|
||||||
|
inner_executor:
|
||||||
|
class: SimulatorExecutor
|
||||||
|
module_path: qlib.backtest.executor
|
||||||
|
kwargs:
|
||||||
|
time_per_step: day
|
||||||
|
generate_report: True
|
||||||
|
verbose: True
|
||||||
|
inner_strategy:
|
||||||
|
class: TWAPStrategy
|
||||||
|
module_path: qlib.contrib.strategy.rule_strategy
|
||||||
|
track_data: True
|
||||||
|
generate_report: True
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: XGBModel
|
class: XGBModel
|
||||||
@@ -59,13 +74,18 @@ task:
|
|||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs: {}
|
kwargs:
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: SigAnaRecord
|
- class: SigAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
ana_long_short: False
|
ana_long_short: False
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
|
model: <MODEL>
|
||||||
|
dataset: <DATASET>
|
||||||
- class: PortAnaRecord
|
- class: PortAnaRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
kwargs:
|
kwargs:
|
||||||
config: *port_analysis_config
|
config: *port_analysis_config
|
||||||
|
risk_analysis_freq: day
|
||||||
|
|||||||
Reference in New Issue
Block a user