From 7bf4645a85393014594a58cc19691cf3f20aaf19 Mon Sep 17 00:00:00 2001 From: jingboyitiji Date: Fri, 28 Mar 2025 11:09:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=AB=E5=A4=A7=E7=BB=B4?= =?UTF-8?q?=E5=BA=A6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config_jingbo_yuedu.py | 1 + models/nerulforcastmodels.py | 8 ++++++++ 2 files changed, 9 insertions(+) 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')