diff --git a/config_jingbo_yuedu.py b/config_jingbo_yuedu.py index d1afac7..7b482bc 100644 --- a/config_jingbo_yuedu.py +++ b/config_jingbo_yuedu.py @@ -208,6 +208,7 @@ is_update_warning_data = False # 是否上传预警数据 is_update_predict_value = True # 是否上传预测值到市场信息平台 is_del_corr = 0.6 # 是否删除相关性高的特征,取值为 0-1 ,0 为不删除,0.6 表示删除相关性小于0.6的特征 is_del_tow_month = True # 是否删除两个月不更新的特征 +is_bdwd = True # 是否使用八大维度 # 连接到数据库 diff --git a/models/nerulforcastmodels.py b/models/nerulforcastmodels.py index bce724c..870b8b3 100644 --- a/models/nerulforcastmodels.py +++ b/models/nerulforcastmodels.py @@ -2281,6 +2281,14 @@ def brent_export_pdf(num_indicators=475, num_models=21, num_dayindicator=202, in data = df.values.tolist() col_width = 500/len(df.columns) content.append(Graphs.draw_table(col_width, *data)) + + if config.is_bdwd: + # 添加八大维度数据 + content.append(Graphs.draw_text('八大维度预测:')) + bdwd_df = pd.read_csv(os.path.join( + config.dataset, '八大维度数据.csv'), encoding='utf-8') + # + pass content.append(Graphs.draw_little_title('二、上一预测周期偏差率分析:')) df = pd.read_csv(os.path.join( config.dataset, 'testandpredict_groupby.csv'), encoding='utf-8')