mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 16:26:55 +08:00
add exchange kwargs
This commit is contained in:
committed by
you-n-g
parent
267ee3555d
commit
93796bdcef
@@ -45,6 +45,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: ALSTM
|
class: ALSTM
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: ALSTM
|
class: ALSTM
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: CatBoostModel
|
class: CatBoostModel
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: CatBoostModel
|
class: CatBoostModel
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DEnsembleModel
|
class: DEnsembleModel
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DEnsembleModel
|
class: DEnsembleModel
|
||||||
|
|||||||
@@ -44,6 +44,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GATs
|
class: GATs
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GATs
|
class: GATs
|
||||||
|
|||||||
@@ -45,6 +45,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GRU
|
class: GRU
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: GRU
|
class: GRU
|
||||||
|
|||||||
@@ -45,6 +45,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LSTM
|
class: LSTM
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LSTM
|
class: LSTM
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LGBModel
|
class: LGBModel
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LGBModel
|
class: LGBModel
|
||||||
|
|||||||
@@ -38,6 +38,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LGBModel
|
class: LGBModel
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: LinearModel
|
class: LinearModel
|
||||||
@@ -64,7 +70,7 @@ task:
|
|||||||
- 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: True
|
||||||
ann_scaler: 252
|
ann_scaler: 252
|
||||||
model: <MODEL>
|
model: <MODEL>
|
||||||
dataset: <DATASET>
|
dataset: <DATASET>
|
||||||
|
|||||||
@@ -50,6 +50,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DNNModelPytorch
|
class: DNNModelPytorch
|
||||||
|
|||||||
@@ -38,6 +38,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: DNNModelPytorch
|
class: DNNModelPytorch
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: SFM
|
class: SFM
|
||||||
|
|||||||
@@ -41,6 +41,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TCTS
|
class: TCTS
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TFTModel
|
class: TFTModel
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TabnetModel
|
class: TabnetModel
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: TabnetModel
|
class: TabnetModel
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: XGBModel
|
class: XGBModel
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ port_analysis_config: &port_analysis_config
|
|||||||
end_time: 2020-08-01
|
end_time: 2020-08-01
|
||||||
account: 100000000
|
account: 100000000
|
||||||
benchmark: *benchmark
|
benchmark: *benchmark
|
||||||
|
exchange_kwargs:
|
||||||
|
limit_threshold: 0.095
|
||||||
|
deal_price: close
|
||||||
|
open_cost: 0.0005
|
||||||
|
close_cost: 0.0015
|
||||||
|
min_cost: 5
|
||||||
task:
|
task:
|
||||||
model:
|
model:
|
||||||
class: XGBModel
|
class: XGBModel
|
||||||
|
|||||||
Reference in New Issue
Block a user