{"description":"实验创建于2017/8/26","graph":{"edges":[{"to_node_id":"-231:features","from_node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-24:data"},{"to_node_id":"-238:features","from_node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-24:data"},{"to_node_id":"-231:instruments","from_node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-62:data"},{"to_node_id":"-119:predict_ds","from_node_id":"-86:data"},{"to_node_id":"-238:input_data","from_node_id":"-231:data"},{"to_node_id":"-86:input_data","from_node_id":"-238:data"},{"to_node_id":"-119:model","from_node_id":"-325:data_1"}],"nodes":[{"node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-24","module_id":"BigQuantSpace.input_features.input_features-v1","parameters":[{"name":"features","value":"# #号开始的表示注释\n# 多个特征,每行一个,可以包含基础特征和衍生特征\nreturn_5\nreturn_10\nreturn_20\navg_amount_0/avg_amount_5\navg_amount_5/avg_amount_20\nrank_avg_amount_0/rank_avg_amount_5\nrank_avg_amount_5/rank_avg_amount_10\nrank_return_0\nrank_return_5\nrank_return_10\nrank_return_0/rank_return_5\nrank_return_5/rank_return_10\npe_ttm_0\n","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"features_ds","node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-24"}],"output_ports":[{"name":"data","node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-24"}],"cacheable":true,"seq_num":3,"comment":"","comment_collapsed":true},{"node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-62","module_id":"BigQuantSpace.instruments.instruments-v2","parameters":[{"name":"start_date","value":"2015-01-01","type":"Literal","bound_global_parameter":"交易日期"},{"name":"end_date","value":"2017-01-01","type":"Literal","bound_global_parameter":"交易日期"},{"name":"market","value":"CN_STOCK_A","type":"Literal","bound_global_parameter":null},{"name":"instrument_list","value":"","type":"Literal","bound_global_parameter":null},{"name":"max_count","value":"0","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"rolling_conf","node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-62"}],"output_ports":[{"name":"data","node_id":"287d2cb0-f53c-4101-bdf8-104b137c8601-62"}],"cacheable":true,"seq_num":9,"comment":"预测数据,用于回测和模拟","comment_collapsed":false},{"node_id":"-86","module_id":"BigQuantSpace.dropnan.dropnan-v1","parameters":[],"input_ports":[{"name":"input_data","node_id":"-86"}],"output_ports":[{"name":"data","node_id":"-86"}],"cacheable":true,"seq_num":14,"comment":"","comment_collapsed":true},{"node_id":"-231","module_id":"BigQuantSpace.general_feature_extractor.general_feature_extractor-v7","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":90,"type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-231"},{"name":"features","node_id":"-231"}],"output_ports":[{"name":"data","node_id":"-231"}],"cacheable":true,"seq_num":17,"comment":"","comment_collapsed":true},{"node_id":"-238","module_id":"BigQuantSpace.derived_feature_extractor.derived_feature_extractor-v3","parameters":[{"name":"date_col","value":"date","type":"Literal","bound_global_parameter":null},{"name":"instrument_col","value":"instrument","type":"Literal","bound_global_parameter":null},{"name":"drop_na","value":"False","type":"Literal","bound_global_parameter":null},{"name":"remove_extra_columns","value":"False","type":"Literal","bound_global_parameter":null},{"name":"user_functions","value":"","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"input_data","node_id":"-238"},{"name":"features","node_id":"-238"}],"output_ports":[{"name":"data","node_id":"-238"}],"cacheable":true,"seq_num":18,"comment":"","comment_collapsed":true},{"node_id":"-119","module_id":"BigQuantSpace.xgboost.xgboost-v1","parameters":[{"name":"num_boost_round","value":30,"type":"Literal","bound_global_parameter":null},{"name":"objective","value":"排序(pairwise)","type":"Literal","bound_global_parameter":null},{"name":"booster","value":"gbtree","type":"Literal","bound_global_parameter":null},{"name":"max_depth","value":"5","type":"Literal","bound_global_parameter":null},{"name":"key_cols","value":"date,instrument","type":"Literal","bound_global_parameter":null},{"name":"group_col","value":"date","type":"Literal","bound_global_parameter":null},{"name":"nthread","value":1,"type":"Literal","bound_global_parameter":null},{"name":"n_gpus","value":-1,"type":"Literal","bound_global_parameter":null},{"name":"other_train_parameters","value":"{}","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"training_ds","node_id":"-119"},{"name":"features","node_id":"-119"},{"name":"model","node_id":"-119"},{"name":"predict_ds","node_id":"-119"}],"output_ports":[{"name":"output_model","node_id":"-119"},{"name":"predictions","node_id":"-119"}],"cacheable":true,"seq_num":5,"comment":"","comment_collapsed":true},{"node_id":"-325","module_id":"BigQuantSpace.cached.cached-v3","parameters":[{"name":"run","value":"# Python 代码入口函数,input_1/2/3 对应三个输入端,data_1/2/3 对应三个输出端\ndef bigquant_run(input_1, input_2, input_3):\n \n # 调用以csv文件保存的xgboost模型\n data_1 = DataSource.write_pickle(pd.read_pickle('xgboost.csv'))\n return Outputs(data_1=data_1, data_2=None, data_3=None)\n","type":"Literal","bound_global_parameter":null},{"name":"post_run","value":"# 后处理函数,可选。输入是主函数的输出,可以在这里对数据做处理,或者返回更友好的outputs数据格式。此函数输出不会被缓存。\ndef bigquant_run(outputs):\n return outputs\n","type":"Literal","bound_global_parameter":null},{"name":"input_ports","value":"","type":"Literal","bound_global_parameter":null},{"name":"params","value":"{}","type":"Literal","bound_global_parameter":null},{"name":"output_ports","value":"","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"input_1","node_id":"-325"},{"name":"input_2","node_id":"-325"},{"name":"input_3","node_id":"-325"}],"output_ports":[{"name":"data_1","node_id":"-325"},{"name":"data_2","node_id":"-325"},{"name":"data_3","node_id":"-325"}],"cacheable":true,"seq_num":1,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='287d2cb0-f53c-4101-bdf8-104b137c8601-24' Position='540,59,200,200'/><node_position Node='287d2cb0-f53c-4101-bdf8-104b137c8601-62' Position='914,61,200,200'/><node_position Node='-86' Position='775,434,200,200'/><node_position Node='-231' Position='743,263,200,200'/><node_position Node='-238' Position='746,356,200,200'/><node_position Node='-119' Position='290,545,200,200'/><node_position Node='-325' Position='272,417,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
[2021-12-11 17:29:33.185530] INFO: moduleinvoker: input_features.v1 开始运行..
[2021-12-11 17:29:33.196652] INFO: moduleinvoker: 命中缓存
[2021-12-11 17:29:33.199046] INFO: moduleinvoker: input_features.v1 运行完成[0.01355s].
[2021-12-11 17:29:33.206425] INFO: moduleinvoker: instruments.v2 开始运行..
[2021-12-11 17:29:33.216751] INFO: moduleinvoker: 命中缓存
[2021-12-11 17:29:33.219135] INFO: moduleinvoker: instruments.v2 运行完成[0.01271s].
[2021-12-11 17:29:33.234954] INFO: moduleinvoker: general_feature_extractor.v7 开始运行..
[2021-12-11 17:29:33.244242] INFO: moduleinvoker: 命中缓存
[2021-12-11 17:29:33.246288] INFO: moduleinvoker: general_feature_extractor.v7 运行完成[0.011355s].
[2021-12-11 17:29:33.255602] INFO: moduleinvoker: derived_feature_extractor.v3 开始运行..
[2021-12-11 17:29:33.264553] INFO: moduleinvoker: 命中缓存
[2021-12-11 17:29:33.266379] INFO: moduleinvoker: derived_feature_extractor.v3 运行完成[0.010789s].
[2021-12-11 17:29:33.276142] INFO: moduleinvoker: dropnan.v1 开始运行..
[2021-12-11 17:29:33.287604] INFO: moduleinvoker: 命中缓存
[2021-12-11 17:29:33.289913] INFO: moduleinvoker: dropnan.v1 运行完成[0.013785s].
[2021-12-11 17:29:33.306375] INFO: moduleinvoker: cached.v3 开始运行..
[2021-12-11 17:29:33.320650] INFO: moduleinvoker: 命中缓存
[2021-12-11 17:29:33.323008] INFO: moduleinvoker: cached.v3 运行完成[0.016646s].
[2021-12-11 17:29:33.331878] INFO: moduleinvoker: xgboost.v1 开始运行..
[2021-12-11 17:29:39.548739] INFO: moduleinvoker: xgboost.v1 运行完成[6.216857s].