修改聚烯烃预测名称

This commit is contained in:
liurui 2024-11-13 11:41:38 +08:00
parent 624dd0d507
commit d61259d3b9
2 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ if add_kdj and is_edbnamelist:
edbnamelist = edbnamelist+['K','D','J']
### 模型参数
# y = 'PP拉丝1102K市场价青州国家能源宁煤' # 原油指标数据的目标变量
y = 'AVG(金能大唐久泰青州)' # 原油指标数据的目标变量
y = 'AVG-金能大唐久泰青州' # 原油指标数据的目标变量
avg_cols = [
'PP拉丝1102K出厂价青州国家能源宁煤',
'PP拉丝L5E89出厂价华北第二区域内蒙古久泰新材料',

View File

@ -509,8 +509,8 @@ def datachuli_juxiting(df_zhibiaoshuju,df_zhibiaoliebiao,datecol='date',end_time
df.rename(columns={datecol:'ds'},inplace=True)
df[offsite_col] = df[offsite_col]-offsite
df['AVG(金能大唐久泰青州)'] = df[avg_cols].mean(axis=1)
print(df[['ds','AVG(金能大唐久泰青州)']+avg_cols].head(20))
df[y] = df[avg_cols].mean(axis=1)
print(df[['ds',y]+avg_cols].head(20))
# 重命名预测列
df.rename(columns={y:'y'},inplace=True)
# 按时间顺序排列