添加八大维度配置

This commit is contained in:
jingboyitiji 2025-03-28 11:09:00 +08:00
parent b4ed768291
commit 7bf4645a85
2 changed files with 9 additions and 0 deletions

View File

@ -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 # 是否使用八大维度
# 连接到数据库

View File

@ -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')