{"description":"实验创建于2021/10/23","graph":{"edges":[{"to_node_id":"-306:instruments","from_node_id":"-293:data"},{"to_node_id":"-270:instruments","from_node_id":"-293:data"},{"to_node_id":"-306:features","from_node_id":"-301:data"},{"to_node_id":"-313:features","from_node_id":"-301:data"},{"to_node_id":"-313:input_data","from_node_id":"-306:data"},{"to_node_id":"-270:feature_datas","from_node_id":"-313:data"}],"nodes":[{"node_id":"-270","module_id":"BigQuantSpace.genetic_algorithm.genetic_algorithm-v1","parameters":[{"name":"all_start_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"all_end_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"short_date_range_ratio","value":"0.7","type":"Literal","bound_global_parameter":null},{"name":"return_field","value":"wap_3_vwap_buy","type":"Literal","bound_global_parameter":null},{"name":"rebalance_period","value":1,"type":"Literal","bound_global_parameter":null},{"name":"train_test_ratio","value":0.75,"type":"Literal","bound_global_parameter":null},{"name":"train_validate_ratio","value":0.75,"type":"Literal","bound_global_parameter":null},{"name":"mtime","value":"2","type":"Literal","bound_global_parameter":null},{"name":"init_ind_num","value":"10","type":"Literal","bound_global_parameter":null},{"name":"ngen","value":"3","type":"Literal","bound_global_parameter":null},{"name":"fitness_func","value":"long_return","type":"Literal","bound_global_parameter":null},{"name":"train_fitness","value":"2","type":"Literal","bound_global_parameter":null},{"name":"test_fitness","value":"1.6","type":"Literal","bound_global_parameter":null},{"name":"ir_type","value":"ir","type":"Literal","bound_global_parameter":null},{"name":"cxpb","value":0.5,"type":"Literal","bound_global_parameter":null},{"name":"mutpb","value":0.3,"type":"Literal","bound_global_parameter":null},{"name":"mutspb","value":0.3,"type":"Literal","bound_global_parameter":null},{"name":"mutnrpb","value":0.3,"type":"Literal","bound_global_parameter":null},{"name":"constant","value":"1,11","type":"Literal","bound_global_parameter":null},{"name":"pool_processes_limit","value":"5","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-270"},{"name":"feature_datas","node_id":"-270"},{"name":"base_features","node_id":"-270"}],"output_ports":[{"name":"factors","node_id":"-270"}],"cacheable":false,"seq_num":1,"comment":"","comment_collapsed":true},{"node_id":"-293","module_id":"BigQuantSpace.instruments.instruments-v2","parameters":[{"name":"start_date","value":"2018-01-01","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"2021-10-20","type":"Literal","bound_global_parameter":null},{"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":"-293"}],"output_ports":[{"name":"data","node_id":"-293"}],"cacheable":true,"seq_num":2,"comment":"","comment_collapsed":true},{"node_id":"-301","module_id":"BigQuantSpace.input_features.input_features-v1","parameters":[{"name":"features","value":"close_0\nopen_0\nhigh_0\nlow_0 \namount_0\nturn_0 \nreturn_0","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"features_ds","node_id":"-301"}],"output_ports":[{"name":"data","node_id":"-301"}],"cacheable":true,"seq_num":3,"comment":"","comment_collapsed":true},{"node_id":"-306","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":"-306"},{"name":"features","node_id":"-306"}],"output_ports":[{"name":"data","node_id":"-306"}],"cacheable":true,"seq_num":4,"comment":"","comment_collapsed":true},{"node_id":"-313","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":"-313"},{"name":"features","node_id":"-313"}],"output_ports":[{"name":"data","node_id":"-313"}],"cacheable":true,"seq_num":5,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='-270' Position='-128.10812377929688,166.5946044921875,200,200'/><node_position Node='-293' Position='-132,-133.2432403564453,200,200'/><node_position Node='-301' Position='163,-95,200,200'/><node_position Node='-306' Position='62.081085205078125,-4.027027130126953,200,200'/><node_position Node='-313' Position='47.75675964355469,77.10810852050781,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
[2022-09-10 09:57:41.080953] INFO: moduleinvoker: instruments.v2 开始运行..
[2022-09-10 09:57:41.221859] INFO: moduleinvoker: instruments.v2 运行完成[0.140921s].
[2022-09-10 09:57:41.234762] INFO: moduleinvoker: input_features.v1 开始运行..
[2022-09-10 09:57:41.247651] INFO: moduleinvoker: 命中缓存
[2022-09-10 09:57:41.250020] INFO: moduleinvoker: input_features.v1 运行完成[0.015278s].
[2022-09-10 09:57:41.290176] INFO: moduleinvoker: general_feature_extractor.v7 开始运行..
[2022-09-10 09:57:43.864533] INFO: 基础特征抽取: 年份 2017, 特征行数=193398
[2022-09-10 09:57:47.348484] INFO: 基础特征抽取: 年份 2018, 特征行数=816987
[2022-09-10 09:57:51.552455] INFO: 基础特征抽取: 年份 2019, 特征行数=884867
[2022-09-10 09:58:00.108053] INFO: 基础特征抽取: 年份 2020, 特征行数=945961
[2022-09-10 09:58:05.725116] INFO: 基础特征抽取: 年份 2021, 特征行数=822395
[2022-09-10 09:58:05.892927] INFO: 基础特征抽取: 总行数: 3663608
[2022-09-10 09:58:05.902517] INFO: moduleinvoker: general_feature_extractor.v7 运行完成[24.612353s].
[2022-09-10 09:58:05.922210] INFO: moduleinvoker: derived_feature_extractor.v3 开始运行..
[2022-09-10 09:58:13.306827] INFO: derived_feature_extractor: /y_2017, 193398
[2022-09-10 09:58:14.909486] INFO: derived_feature_extractor: /y_2018, 816987
[2022-09-10 09:58:16.607879] INFO: derived_feature_extractor: /y_2019, 884867
[2022-09-10 09:58:22.055122] INFO: derived_feature_extractor: /y_2020, 945961
[2022-09-10 09:58:24.826307] INFO: derived_feature_extractor: /y_2021, 822395
[2022-09-10 09:58:26.755562] INFO: moduleinvoker: derived_feature_extractor.v3 运行完成[20.833317s].
[2022-09-10 09:58:27.226763] INFO: moduleinvoker: genetic_algorithm.v1 开始运行..
[2022-09-10 09:58:28.986058] INFO: 遗传规划: loading data from 2018-01-01 to 2020-08-30...
[2022-09-10 09:59:43.529243] INFO: 遗传规划: loaded data from 2018-01-01 to 2020-08-30 successfully
[2022-09-10 09:59:43.811149] INFO: 遗传规划: loading data from 2018-01-01 to 2021-10-20...
[2022-09-10 10:00:50.389563] INFO: 遗传规划: loaded data from 2018-01-01 to 2021-10-20 successfully
[2022-09-10 10:00:50.494039] INFO: 遗传规划: 初始化toolbox ...
[2022-09-10 10:00:50.560122] ERROR: moduleinvoker: module name: genetic_algorithm, module version: v1, trackeback: TypeError: issubclass() arg 2 must be a class or tuple of classes
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-64cf9ee89408> in <module>
39 )
40
---> 41 m1 = M.genetic_algorithm.v1(
42 instruments=m2.data,
43 feature_datas=m5.data,
TypeError: issubclass() arg 2 must be a class or tuple of classes