{"description":"实验创建于2017/8/26","graph":{"edges":[{"to_node_id":"-322:features","from_node_id":"-331:data"},{"to_node_id":"-322:instruments","from_node_id":"-312:data"},{"to_node_id":"-322:user_functions","from_node_id":"-584:functions"}],"nodes":[{"node_id":"-331","module_id":"BigQuantSpace.input_features.input_features-v1","parameters":[{"name":"features","value":"_c = close.loc[93100:145600]\n_o = open.loc[93100:145600]\n_v = volume.loc[93100:145600]\n_c1 = _c.iloc[0::10]\n_v1 = _v.cumsum().iloc[0::10]\n_o1 = _o.iloc[0::10]\n_ret = ret_sim(_c, _o) + 1\n_ret1 = ret_sim(_c1, _o1) + 1\n\n# 改进反转因子(1分钟)\n_w1 = _v / _v.sum()\nRev_vol_1m = (_w1.mul(np.log(_ret))).sum()\n\n\n# 改进反转因子(10分钟)\n_w2 = _v1 / _v1.sum()\nRev_vol_10m = (_w2.mul(np.log(_ret1))).sum()","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"features_ds","node_id":"-331"}],"output_ports":[{"name":"data","node_id":"-331"}],"cacheable":true,"seq_num":1,"comment":"","comment_collapsed":true},{"node_id":"-312","module_id":"BigQuantSpace.instruments.instruments-v2","parameters":[{"name":"start_date","value":"2014-03-03","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"2021-12-31","type":"Literal","bound_global_parameter":null},{"name":"market","value":"CN_STOCK_A","type":"Literal","bound_global_parameter":null},{"name":"instrument_list","value":"000001.SZA\n000002.SZA\n000005.SZA","type":"Literal","bound_global_parameter":null},{"name":"max_count","value":0,"type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"rolling_conf","node_id":"-312"}],"output_ports":[{"name":"data","node_id":"-312"}],"cacheable":true,"seq_num":2,"comment":"","comment_collapsed":true},{"node_id":"-322","module_id":"BigQuantSpace.feature_extractor_1m.feature_extractor_1m-v1","parameters":[{"name":"start_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"before_start_days","value":"20","type":"Literal","bound_global_parameter":null},{"name":"workers","value":2,"type":"Literal","bound_global_parameter":null},{"name":"parallel_mode","value":"测试","type":"Literal","bound_global_parameter":null},{"name":"table_1m","value":"level2_bar1m_CN_STOCK_A","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-322"},{"name":"features","node_id":"-322"},{"name":"user_functions","node_id":"-322"}],"output_ports":[{"name":"data","node_id":"-322"}],"cacheable":false,"seq_num":3,"comment":"","comment_collapsed":true},{"node_id":"-584","module_id":"BigQuantSpace.feature_extractor_user_function.feature_extractor_user_function-v1","parameters":[{"name":"name","value":"ret_sim","type":"Literal","bound_global_parameter":null},{"name":"func","value":"def bigquant_run(df, close, op):\n res = close.pct_change()\n res.iloc[0] = close.iloc[0] / op.iloc[0] - 1\n return res\n","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"input_functions","node_id":"-584"}],"output_ports":[{"name":"functions","node_id":"-584"}],"cacheable":false,"seq_num":4,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='-331' Position='-136,-245,200,200'/><node_position Node='-312' Position='-431.43505859375,-242,200,200'/><node_position Node='-322' Position='-133,-19,200,200'/><node_position Node='-584' Position='181,-246,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
[2021-07-09 10:44:22.285165] INFO: moduleinvoker: input_features.v1 开始运行..
[2021-07-09 10:44:22.330950] INFO: moduleinvoker: input_features.v1 运行完成[0.045781s].
[2021-07-09 10:44:22.342011] INFO: moduleinvoker: instruments.v2 开始运行..
[2021-07-09 10:44:22.388833] INFO: moduleinvoker: instruments.v2 运行完成[0.046813s].
[2021-07-09 10:44:22.393682] INFO: moduleinvoker: feature_extractor_user_function.v1 运行完成[9.4e-05s].
[2021-07-09 10:44:22.407376] INFO: moduleinvoker: feature_extractor_1m.v1 开始运行..
[2021-07-09 10:44:22.430031] INFO: 高频特征抽取-分钟到日频: 测试模式运行, ['000002.SZA', '000005.SZA', '000001.SZA']
[2021-07-09 10:44:22.430900] INFO: 高频特征抽取-分钟到日频: parallel_calculate features 3 instruments, 12 features 2 processes_count..
[2021-07-09 10:44:22.431572] INFO: 高频特征抽取-分钟到日频: 开始计算 ... processes_count=2
[2021-07-09 10:44:22.461726] INFO: 高频特征抽取-分钟到日频: 计算中: 0%| | 0/3 [00:00, ?it/s]
[2021-07-09 10:44:26.841173] INFO: 高频特征抽取-分钟到日频: 计算中: 33%|########## | 1/3 [00:04<00:08, 4.38s/it]
[2021-07-09 10:44:27.040255] INFO: 高频特征抽取-分钟到日频: 计算中: 67%|#################### | 2/3 [00:04<00:03, 3.12s/it]
[2021-07-09 10:44:29.768977] INFO: 高频特征抽取-分钟到日频: 计算中: 100%|##############################| 3/3 [00:07<00:00, 3.01s/it]
[2021-07-09 10:44:29.842848] INFO: 高频特征抽取-分钟到日频: extracted chunk 3/3 instruments, (729, 4).
[2021-07-09 10:44:29.844133] INFO: 高频特征抽取-分钟到日频: merge result .......
[2021-07-09 10:44:29.950642] INFO: 高频特征抽取-分钟到日频: extracted 3/3 instruments, (729, 4)
[2021-07-09 10:44:29.951913] INFO: moduleinvoker: feature_extractor_1m.v1 运行完成[7.544541s].