修改聚烯烃预测名称
This commit is contained in:
parent
624dd0d507
commit
d61259d3b9
@ -228,7 +228,7 @@ if add_kdj and is_edbnamelist:
|
|||||||
edbnamelist = edbnamelist+['K','D','J']
|
edbnamelist = edbnamelist+['K','D','J']
|
||||||
### 模型参数
|
### 模型参数
|
||||||
# y = 'PP:拉丝:1102K:市场价:青州:国家能源宁煤(日)' # 原油指标数据的目标变量
|
# y = 'PP:拉丝:1102K:市场价:青州:国家能源宁煤(日)' # 原油指标数据的目标变量
|
||||||
y = 'AVG(金能大唐久泰青州)' # 原油指标数据的目标变量
|
y = 'AVG-金能大唐久泰青州' # 原油指标数据的目标变量
|
||||||
avg_cols = [
|
avg_cols = [
|
||||||
'PP:拉丝:1102K:出厂价:青州:国家能源宁煤(日)',
|
'PP:拉丝:1102K:出厂价:青州:国家能源宁煤(日)',
|
||||||
'PP:拉丝:L5E89:出厂价:华北(第二区域):内蒙古久泰新材料(日)',
|
'PP:拉丝:L5E89:出厂价:华北(第二区域):内蒙古久泰新材料(日)',
|
||||||
|
@ -509,8 +509,8 @@ def datachuli_juxiting(df_zhibiaoshuju,df_zhibiaoliebiao,datecol='date',end_time
|
|||||||
df.rename(columns={datecol:'ds'},inplace=True)
|
df.rename(columns={datecol:'ds'},inplace=True)
|
||||||
|
|
||||||
df[offsite_col] = df[offsite_col]-offsite
|
df[offsite_col] = df[offsite_col]-offsite
|
||||||
df['AVG(金能大唐久泰青州)'] = df[avg_cols].mean(axis=1)
|
df[y] = df[avg_cols].mean(axis=1)
|
||||||
print(df[['ds','AVG(金能大唐久泰青州)']+avg_cols].head(20))
|
print(df[['ds',y]+avg_cols].head(20))
|
||||||
# 重命名预测列
|
# 重命名预测列
|
||||||
df.rename(columns={y:'y'},inplace=True)
|
df.rename(columns={y:'y'},inplace=True)
|
||||||
# 按时间顺序排列
|
# 按时间顺序排列
|
||||||
|
Loading…
Reference in New Issue
Block a user