Skip to content

Commit 052aad7

Browse files
committed
simplify signal parameter
1 parent 12f05c7 commit 052aad7

File tree

40 files changed

+160
-98
lines changed

40 files changed

+160
-98
lines changed

docs/component/workflow.rst

+6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Below is a typical config file of ``qrun``.
5353
kwargs:
5454
topk: 50
5555
n_drop: 5
56+
signal:
57+
- <MODEL>
58+
- <DATASET>
5659
backtest:
5760
limit_threshold: 0.095
5861
account: 100000000
@@ -240,6 +243,9 @@ The following script is the configuration of `backtest` and the `strategy` used
240243
kwargs:
241244
topk: 50
242245
n_drop: 5
246+
signal:
247+
- <MODEL>
248+
- <DATASET>
243249
backtest:
244250
limit_threshold: 0.095
245251
account: 100000000

examples/benchmarks/ALSTM/workflow_config_alstm_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ port_analysis_config: &port_analysis_config
3636
class: TopkDropoutStrategy
3737
module_path: qlib.contrib.strategy
3838
kwargs:
39-
model: <MODEL>
40-
dataset: <DATASET>
39+
signal:
40+
- <MODEL>
41+
- <DATASET>
4142
topk: 50
4243
n_drop: 5
4344
backtest:

examples/benchmarks/ALSTM/workflow_config_alstm_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:
@@ -86,4 +87,4 @@ task:
8687
- class: PortAnaRecord
8788
module_path: qlib.workflow.record_temp
8889
kwargs:
89-
config: *port_analysis_config
90+
config: *port_analysis_config

examples/benchmarks/CatBoost/workflow_config_catboost_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ port_analysis_config: &port_analysis_config
1414
class: TopkDropoutStrategy
1515
module_path: qlib.contrib.strategy
1616
kwargs:
17-
model: <MODEL>
18-
dataset: <DATASET>
17+
signal:
18+
- <MODEL>
19+
- <DATASET>
1920
topk: 50
2021
n_drop: 5
2122
backtest:

examples/benchmarks/CatBoost/workflow_config_catboost_Alpha360.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ port_analysis_config: &port_analysis_config
2121
class: TopkDropoutStrategy
2222
module_path: qlib.contrib.strategy
2323
kwargs:
24-
model: <MODEL>
25-
dataset: <DATASET>
24+
signal:
25+
- <MODEL>
26+
- <DATASET>
2627
topk: 50
2728
n_drop: 5
2829
backtest:

examples/benchmarks/DoubleEnsemble/workflow_config_doubleensemble_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ port_analysis_config: &port_analysis_config
1414
class: TopkDropoutStrategy
1515
module_path: qlib.contrib.strategy
1616
kwargs:
17-
model: <MODEL>
18-
dataset: <DATASET>
17+
signal:
18+
- <MODEL>
19+
- <DATASET>
1920
topk: 50
2021
n_drop: 5
2122
backtest:

examples/benchmarks/DoubleEnsemble/workflow_config_doubleensemble_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ port_analysis_config: &port_analysis_config
2121
class: TopkDropoutStrategy
2222
module_path: qlib.contrib.strategy
2323
kwargs:
24-
model: <MODEL>
25-
dataset: <DATASET>
24+
signal:
25+
- <MODEL>
26+
- <DATASET>
2627
topk: 50
2728
n_drop: 5
2829
backtest:
@@ -100,4 +101,4 @@ task:
100101
- class: PortAnaRecord
101102
module_path: qlib.workflow.record_temp
102103
kwargs:
103-
config: *port_analysis_config
104+
config: *port_analysis_config

examples/benchmarks/GATs/workflow_config_gats_Alpha158.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ port_analysis_config: &port_analysis_config
3535
class: TopkDropoutStrategy
3636
module_path: qlib.contrib.strategy
3737
kwargs:
38-
model: <MODEL>
39-
dataset: <DATASET>
38+
signal:
39+
- <MODEL>
40+
- <DATASET>
4041
topk: 50
4142
n_drop: 5
4243
backtest:
@@ -94,4 +95,4 @@ task:
9495
- class: PortAnaRecord
9596
module_path: qlib.workflow.record_temp
9697
kwargs:
97-
config: *port_analysis_config
98+
config: *port_analysis_config

examples/benchmarks/GATs/workflow_config_gats_Alpha360.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:

examples/benchmarks/GRU/workflow_config_gru_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ port_analysis_config: &port_analysis_config
3636
class: TopkDropoutStrategy
3737
module_path: qlib.contrib.strategy
3838
kwargs:
39-
model: <MODEL>
40-
dataset: <DATASET>
39+
signal:
40+
- <MODEL>
41+
- <DATASET>
4142
topk: 50
4243
n_drop: 5
4344
backtest:

examples/benchmarks/GRU/workflow_config_gru_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:
@@ -85,4 +86,4 @@ task:
8586
- class: PortAnaRecord
8687
module_path: qlib.workflow.record_temp
8788
kwargs:
88-
config: *port_analysis_config
89+
config: *port_analysis_config

examples/benchmarks/LSTM/workflow_config_lstm_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ port_analysis_config: &port_analysis_config
3636
class: TopkDropoutStrategy
3737
module_path: qlib.contrib.strategy
3838
kwargs:
39-
model: <MODEL>
40-
dataset: <DATASET>
39+
signal:
40+
- <MODEL>
41+
- <DATASET>
4142
topk: 50
4243
n_drop: 5
4344
backtest:

examples/benchmarks/LSTM/workflow_config_lstm_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:
@@ -85,4 +86,4 @@ task:
8586
- class: PortAnaRecord
8687
module_path: qlib.workflow.record_temp
8788
kwargs:
88-
config: *port_analysis_config
89+
config: *port_analysis_config

examples/benchmarks/LightGBM/workflow_config_lightgbm_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ port_analysis_config: &port_analysis_config
1414
class: TopkDropoutStrategy
1515
module_path: qlib.contrib.strategy
1616
kwargs:
17-
model: <MODEL>
18-
dataset: <DATASET>
17+
signal:
18+
- <MODEL>
19+
- <DATASET>
1920
topk: 50
2021
n_drop: 5
2122
backtest:

examples/benchmarks/LightGBM/workflow_config_lightgbm_Alpha158_multi_freq.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ port_analysis_config: &port_analysis_config
3333
kwargs:
3434
topk: 50
3535
n_drop: 5
36+
signal:
37+
- <MODEL>
38+
- <DATASET>
3639
backtest:
3740
verbose: False
3841
limit_threshold: 0.095
@@ -80,4 +83,4 @@ task:
8083
- class: PortAnaRecord
8184
module_path: qlib.workflow.record_temp
8285
kwargs:
83-
config: *port_analysis_config
86+
config: *port_analysis_config

examples/benchmarks/LightGBM/workflow_config_lightgbm_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ port_analysis_config: &port_analysis_config
2121
class: TopkDropoutStrategy
2222
module_path: qlib.contrib.strategy
2323
kwargs:
24-
model: <MODEL>
25-
dataset: <DATASET>
24+
signal:
25+
- <MODEL>
26+
- <DATASET>
2627
topk: 50
2728
n_drop: 5
2829
backtest:
@@ -76,4 +77,4 @@ task:
7677
- class: PortAnaRecord
7778
module_path: qlib.workflow.record_temp
7879
kwargs:
79-
config: *port_analysis_config
80+
config: *port_analysis_config

examples/benchmarks/LightGBM/workflow_config_lightgbm_configurable_dataset.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ port_analysis_config: &port_analysis_config
2929
class: TopkDropoutStrategy
3030
module_path: qlib.contrib.strategy
3131
kwargs:
32-
model: <MODEL>
33-
dataset: <DATASET>
32+
signal:
33+
- <MODEL>
34+
- <DATASET>
3435
topk: 50
3536
n_drop: 5
3637
backtest:

examples/benchmarks/LightGBM/workflow_config_lightgbm_multi_freq.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ port_analysis_config: &port_analysis_config
3131
class: TopkDropoutStrategy
3232
module_path: qlib.contrib.strategy
3333
kwargs:
34-
model: <MODEL>
35-
dataset: <DATASET>
34+
signal:
35+
- <MODEL>
36+
- <DATASET>
3637
topk: 50
3738
n_drop: 5
3839
backtest:

examples/benchmarks/Linear/workflow_config_linear_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:

examples/benchmarks/Localformer/workflow_config_localformer_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ port_analysis_config: &port_analysis_config
3636
class: TopkDropoutStrategy
3737
module_path: qlib.contrib.strategy
3838
kwargs:
39-
model: <MODEL>
40-
dataset: <DATASET>
39+
signal:
40+
- <MODEL>
41+
- <DATASET>
4142
topk: 50
4243
n_drop: 5
4344
backtest:

examples/benchmarks/Localformer/workflow_config_localformer_Alpha360.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:

examples/benchmarks/MLP/workflow_config_mlp_Alpha158.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ port_analysis_config: &port_analysis_config
4141
class: TopkDropoutStrategy
4242
module_path: qlib.contrib.strategy
4343
kwargs:
44-
model: <MODEL>
45-
dataset: <DATASET>
44+
signal:
45+
- <MODEL>
46+
- <DATASET>
4647
topk: 50
4748
n_drop: 5
4849
backtest:
@@ -98,4 +99,4 @@ task:
9899
- class: PortAnaRecord
99100
module_path: qlib.workflow.record_temp
100101
kwargs:
101-
config: *port_analysis_config
102+
config: *port_analysis_config

examples/benchmarks/MLP/workflow_config_mlp_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ port_analysis_config: &port_analysis_config
2929
class: TopkDropoutStrategy
3030
module_path: qlib.contrib.strategy
3131
kwargs:
32-
model: <MODEL>
33-
dataset: <DATASET>
32+
signal:
33+
- <MODEL>
34+
- <DATASET>
3435
topk: 50
3536
n_drop: 5
3637
backtest:
@@ -85,4 +86,4 @@ task:
8586
- class: PortAnaRecord
8687
module_path: qlib.workflow.record_temp
8788
kwargs:
88-
config: *port_analysis_config
89+
config: *port_analysis_config

examples/benchmarks/SFM/workflow_config_sfm_Alpha360.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ port_analysis_config: &port_analysis_config
2828
class: TopkDropoutStrategy
2929
module_path: qlib.contrib.strategy
3030
kwargs:
31-
model: <MODEL>
32-
dataset: <DATASET>
31+
signal:
32+
- <MODEL>
33+
- <DATASET>
3334
topk: 50
3435
n_drop: 5
3536
backtest:

examples/benchmarks/TCTS/workflow_config_tcts_Alpha360.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ port_analysis_config: &port_analysis_config
3030
class: TopkDropoutStrategy
3131
module_path: qlib.contrib.strategy
3232
kwargs:
33-
model: <MODEL>
34-
dataset: <DATASET>
33+
signal:
34+
- <MODEL>
35+
- <DATASET>
3536
topk: 50
3637
n_drop: 5
3738
backtest:
@@ -94,4 +95,4 @@ task:
9495
- class: PortAnaRecord
9596
module_path: qlib.workflow.record_temp
9697
kwargs:
97-
config: *port_analysis_config
98+
config: *port_analysis_config

examples/benchmarks/TFT/workflow_config_tft_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ port_analysis_config: &port_analysis_config
1616
class: TopkDropoutStrategy
1717
module_path: qlib.contrib.strategy
1818
kwargs:
19-
model: <MODEL>
20-
dataset: <DATASET>
19+
signal:
20+
- <MODEL>
21+
- <DATASET>
2122
topk: 50
2223
n_drop: 5
2324
backtest:

examples/benchmarks/TRA/workflow_config_tra_Alpha158.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ port_analysis_config: &port_analysis_config
5757
class: TopkDropoutStrategy
5858
module_path: qlib.contrib.strategy
5959
kwargs:
60-
model: <MODEL>
61-
dataset: <DATASET>
60+
signal:
61+
- <MODEL>
62+
- <DATASET>
6263
topk: 50
6364
n_drop: 5
6465
backtest:

0 commit comments

Comments
 (0)