{"description":"实验创建于2020/2/14","graph":{"edges":[{"to_node_id":"-3626:features","from_node_id":"-70:data"},{"to_node_id":"-3626:user_factor_data","from_node_id":"-680:data"},{"to_node_id":"-680:rolling_conf","from_node_id":"-2608:data"}],"nodes":[{"node_id":"-70","module_id":"BigQuantSpace.input_features.input_features-v1","parameters":[{"name":"features","value":"\n# #号开始的表示注释,注释需单独一行\n# 多个特征,每行一个,可以包含基础特征和衍生特征,特征须为本平台特征\nopen_0","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"features_ds","node_id":"-70"}],"output_ports":[{"name":"data","node_id":"-70"}],"cacheable":true,"seq_num":1,"comment":"","comment_collapsed":true},{"node_id":"-3626","module_id":"BigQuantSpace.factorlens.factorlens-v2","parameters":[{"name":"title","value":"因子分析: {factor_name}","type":"Literal","bound_global_parameter":null},{"name":"start_date","value":"2019-01-01","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"2019-12-31","type":"Literal","bound_global_parameter":null},{"name":"rebalance_period","value":22,"type":"Literal","bound_global_parameter":null},{"name":"delay_rebalance_days","value":0,"type":"Literal","bound_global_parameter":null},{"name":"rebalance_price","value":"close_0","type":"Literal","bound_global_parameter":null},{"name":"stock_pool","value":"全市场","type":"Literal","bound_global_parameter":null},{"name":"quantile_count","value":5,"type":"Literal","bound_global_parameter":null},{"name":"commission_rate","value":0.0016,"type":"Literal","bound_global_parameter":null},{"name":"returns_calculation_method","value":"累乘","type":"Literal","bound_global_parameter":null},{"name":"benchmark","value":"无","type":"Literal","bound_global_parameter":null},{"name":"drop_new_stocks","value":60,"type":"Literal","bound_global_parameter":null},{"name":"drop_price_limit_stocks","value":"True","type":"Literal","bound_global_parameter":null},{"name":"drop_st_stocks","value":"True","type":"Literal","bound_global_parameter":null},{"name":"drop_suspended_stocks","value":"True","type":"Literal","bound_global_parameter":null},{"name":"cutoutliers","value":"True","type":"Literal","bound_global_parameter":null},{"name":"normalization","value":"True","type":"Literal","bound_global_parameter":null},{"name":"neutralization","value":"%7B%22enumItems%22%3A%5B%7B%22value%22%3A%22%E8%A1%8C%E4%B8%9A%22%2C%22displayValue%22%3A%22%E8%A1%8C%E4%B8%9A%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%B8%82%E5%80%BC%22%2C%22displayValue%22%3A%22%E5%B8%82%E5%80%BC%22%2C%22selected%22%3Atrue%7D%5D%7D","type":"Literal","bound_global_parameter":null},{"name":"metrics","value":"%7B%22enumItems%22%3A%5B%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E8%A1%A8%E7%8E%B0%E6%A6%82%E8%A7%88%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E8%A1%A8%E7%8E%B0%E6%A6%82%E8%A7%88%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E5%88%86%E5%B8%83%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E5%88%86%E5%B8%83%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E8%A1%8C%E4%B8%9A%E5%88%86%E5%B8%83%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E8%A1%8C%E4%B8%9A%E5%88%86%E5%B8%83%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E5%B8%82%E5%80%BC%E5%88%86%E5%B8%83%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E5%B8%82%E5%80%BC%E5%88%86%E5%B8%83%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22IC%E5%88%86%E6%9E%90%22%2C%22displayValue%22%3A%22IC%E5%88%86%E6%9E%90%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E4%B9%B0%E5%85%A5%E4%BF%A1%E5%8F%B7%E9%87%8D%E5%90%88%E5%88%86%E6%9E%90%22%2C%22displayValue%22%3A%22%E4%B9%B0%E5%85%A5%E4%BF%A1%E5%8F%B7%E9%87%8D%E5%90%88%E5%88%86%E6%9E%90%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E4%BC%B0%E5%80%BC%E5%88%86%E6%9E%90%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E4%BC%B0%E5%80%BC%E5%88%86%E6%9E%90%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E6%8B%A5%E6%8C%A4%E5%BA%A6%E5%88%86%E6%9E%90%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E6%8B%A5%E6%8C%A4%E5%BA%A6%E5%88%86%E6%9E%90%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%9B%A0%E5%AD%90%E5%80%BC%E6%9C%80%E5%A4%A7%2F%E6%9C%80%E5%B0%8F%E8%82%A1%E7%A5%A8%22%2C%22displayValue%22%3A%22%E5%9B%A0%E5%AD%90%E5%80%BC%E6%9C%80%E5%A4%A7%2F%E6%9C%80%E5%B0%8F%E8%82%A1%E7%A5%A8%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%9B%A0%E5%AD%90%E5%80%BC%22%2C%22displayValue%22%3A%22%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%9B%A0%E5%AD%90%E5%80%BC%22%2C%22selected%22%3Atrue%7D%2C%7B%22value%22%3A%22%E5%A4%9A%E5%9B%A0%E5%AD%90%E7%9B%B8%E5%85%B3%E6%80%A7%E5%88%86%E6%9E%90%22%2C%22displayValue%22%3A%22%E5%A4%9A%E5%9B%A0%E5%AD%90%E7%9B%B8%E5%85%B3%E6%80%A7%E5%88%86%E6%9E%90%22%2C%22selected%22%3Atrue%7D%5D%7D","type":"Literal","bound_global_parameter":null},{"name":"factor_coverage","value":0.5,"type":"Literal","bound_global_parameter":null},{"name":"user_data_merge","value":"left","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"features","node_id":"-3626"},{"name":"user_factor_data","node_id":"-3626"}],"output_ports":[{"name":"data","node_id":"-3626"},{"name":"save_data","node_id":"-3626"}],"cacheable":true,"seq_num":4,"comment":"","comment_collapsed":true},{"node_id":"-680","module_id":"BigQuantSpace.instruments.instruments-v2","parameters":[{"name":"start_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"market","value":"CN_STOCK_A","type":"Literal","bound_global_parameter":null},{"name":"instrument_list","value":"300014.SZA\n002202.SZA\n600236.SHA\n600884.SHA\n300037.SZA\n002266.SZA\n300073.SZA\n600732.SHA\n002340.SZA\n002129.SZA\n601908.SHA\n300316.SZA\n601012.SHA\n603806.SHA\n601985.SHA\n603659.SHA\n300724.SZA\n300751.SZA\n300763.SZA\n688005.SHA\n003816.SZA\n688116.SHA\n688599.SHA\n300919.SZA\n600032.SHA\n600905.SHA\n600900.SHA\n600438.SHA\n600674.SHA\n002459.SZA\n002506.SZA\n300070.SZA\n002074.SZA\n600886.SHA\n000883.SZA\n300274.SZA\n002709.SZA\n300450.SZA\n603568.SHA\n603026.SHA\n002812.SZA\n603218.SHA\n600025.SHA\n300750.SZA\n603185.SHA\n601615.SHA\n601865.SHA\n688408.SHA\n688390.SHA\n003035.SZA\n","type":"Literal","bound_global_parameter":null},{"name":"max_count","value":0,"type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"rolling_conf","node_id":"-680"}],"output_ports":[{"name":"data","node_id":"-680"}],"cacheable":true,"seq_num":2,"comment":"","comment_collapsed":true},{"node_id":"-2608","module_id":"BigQuantSpace.use_datasource.use_datasource-v1","parameters":[{"name":"datasource_id","value":"3f7f8289e1bd4266a4301fd4d3fd980cT","type":"Literal","bound_global_parameter":null},{"name":"start_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-2608"},{"name":"features","node_id":"-2608"}],"output_ports":[{"name":"data","node_id":"-2608"}],"cacheable":true,"seq_num":3,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='-70' Position='-133,213,200,200'/><node_position Node='-3626' Position='37,373,200,200'/><node_position Node='-680' Position='258.5304260253906,147.84671020507812,200,200'/><node_position Node='-2608' Position='319.7480163574219,-24.10230302810669,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
[2022-03-14 09:00:43.621048] INFO: moduleinvoker: input_features.v1 开始运行..
[2022-03-14 09:00:43.660897] INFO: moduleinvoker: input_features.v1 运行完成[0.039855s].
[2022-03-14 09:00:43.670290] INFO: moduleinvoker: instruments.v2 开始运行..
[2022-03-14 09:00:43.683263] INFO: moduleinvoker: 命中缓存
[2022-03-14 09:00:43.685372] INFO: moduleinvoker: instruments.v2 运行完成[0.015087s].
[2022-03-14 09:00:43.700285] INFO: moduleinvoker: factorlens.v2 开始运行..
[2022-03-14 09:00:43.831156] INFO: 因子分析: batch_process start
[2022-03-14 09:00:43.833815] INFO: 因子分析: load_instruments 2019-01-01, 2019-12-31
[2022-03-14 09:00:44.180407] INFO: 因子分析: load_instruments, 3775 rows.
[2022-03-14 09:00:44.182135] INFO: 因子分析: load_benchmark_data 2019-01-01, 2019-12-31
[2022-03-14 09:00:44.223204] INFO: 因子分析: load_benchmark_data, 732 rows.
[2022-03-14 09:00:44.224829] INFO: 因子分析: StockPool.before_load_general_feature_data
[2022-03-14 09:00:44.226178] INFO: 因子分析: UserDataMerge.before_load_general_feature_data
[2022-03-14 09:00:44.227382] INFO: 因子分析: DropSTStocks.before_load_general_feature_data
[2022-03-14 09:00:44.228452] INFO: 因子分析: DropNewStocks.before_load_general_feature_data
[2022-03-14 09:00:44.229706] INFO: 因子分析: Neutralization.before_load_general_feature_data
[2022-03-14 09:00:44.231130] INFO: 因子分析: DelayRebalanceDays.before_load_general_feature_data
[2022-03-14 09:00:44.232297] INFO: 因子分析: RebalancePeriod.before_load_general_feature_data
[2022-03-14 09:00:44.233614] INFO: 因子分析: RebalancePrice.before_load_general_feature_data
[2022-03-14 09:00:44.234663] INFO: 因子分析: FactorCoverage.before_load_general_feature_data
[2022-03-14 09:00:44.235670] INFO: 因子分析: Industry.before_load_general_feature_data
[2022-03-14 09:00:44.236681] INFO: 因子分析: PBRatio.before_load_general_feature_data
[2022-03-14 09:00:44.237675] INFO: 因子分析: Turnover.before_load_general_feature_data
[2022-03-14 09:00:44.239143] INFO: 因子分析: MarketCap.before_load_general_feature_data
[2022-03-14 09:00:44.240886] INFO: 因子分析: load_general_feature_data, load data
[2022-03-14 09:01:15.175172] ERROR: moduleinvoker: module name: factorlens, module version: v2, trackeback: AttributeError: 'dict' object has no attribute 'columns'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-13-a0844514bb30> in <module>
68 )
69
---> 70 m4 = M.factorlens.v2(
71 features=m1.data,
72 user_factor_data=m2.data,
AttributeError: 'dict' object has no attribute 'columns'