mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 08:16:54 +08:00
Add files via upload
This commit is contained in:
@@ -50,7 +50,7 @@ port_analysis_config: &port_analysis_config
|
|||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LocalformerModel
|
class: LocalformerModel
|
||||||
module_path: qlib.contrib.model.pytorch_localformer
|
module_path: qlib.contrib.model.pytorch_localformer_ts
|
||||||
kwargs:
|
kwargs:
|
||||||
seed: 0
|
seed: 0
|
||||||
n_jobs: 20
|
n_jobs: 20
|
||||||
|
|||||||
@@ -10,13 +10,6 @@ data_handler_config: &data_handler_config
|
|||||||
fit_end_time: 2014-12-31
|
fit_end_time: 2014-12-31
|
||||||
instruments: *market
|
instruments: *market
|
||||||
infer_processors:
|
infer_processors:
|
||||||
- class: FilterCol
|
|
||||||
kwargs:
|
|
||||||
fields_group: feature
|
|
||||||
col_list: ["RESI5", "WVMA5", "RSQR5", "KLEN", "RSQR10", "CORR5", "CORD5", "CORR10",
|
|
||||||
"ROC60", "RESI10", "VSTD5", "RSQR60", "CORR60", "WVMA60", "STD5",
|
|
||||||
"RSQR20", "CORD60", "CORD10", "CORR20", "KLOW"
|
|
||||||
]
|
|
||||||
- class: RobustZScoreNorm
|
- class: RobustZScoreNorm
|
||||||
kwargs:
|
kwargs:
|
||||||
fields_group: feature
|
fields_group: feature
|
||||||
@@ -29,8 +22,7 @@ data_handler_config: &data_handler_config
|
|||||||
- class: CSRankNorm
|
- class: CSRankNorm
|
||||||
kwargs:
|
kwargs:
|
||||||
fields_group: label
|
fields_group: label
|
||||||
label: ["Ref($close, -2) / Ref($close, -1) - 1"]
|
label: ["Ref($close, -2) / Ref($close, -1) - 1"]
|
||||||
|
|
||||||
port_analysis_config: &port_analysis_config
|
port_analysis_config: &port_analysis_config
|
||||||
strategy:
|
strategy:
|
||||||
class: TopkDropoutStrategy
|
class: TopkDropoutStrategy
|
||||||
@@ -52,10 +44,10 @@ task:
|
|||||||
class: LocalformerModel
|
class: LocalformerModel
|
||||||
module_path: qlib.contrib.model.pytorch_localformer
|
module_path: qlib.contrib.model.pytorch_localformer
|
||||||
kwargs:
|
kwargs:
|
||||||
|
d_feat: 6
|
||||||
seed: 0
|
seed: 0
|
||||||
n_jobs: 20
|
|
||||||
dataset:
|
dataset:
|
||||||
class: TSDatasetH
|
class: DatasetH
|
||||||
module_path: qlib.data.dataset
|
module_path: qlib.data.dataset
|
||||||
kwargs:
|
kwargs:
|
||||||
handler:
|
handler:
|
||||||
@@ -66,7 +58,6 @@ 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]
|
||||||
step_len: 20
|
|
||||||
record:
|
record:
|
||||||
- class: SignalRecord
|
- class: SignalRecord
|
||||||
module_path: qlib.workflow.record_temp
|
module_path: qlib.workflow.record_temp
|
||||||
@@ -79,4 +70,4 @@ task:
|
|||||||
- 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
|
||||||
Reference in New Issue
Block a user