聚烯烃主程序更改

This commit is contained in:
liurui 2024-11-14 17:26:17 +08:00
parent 0e444b301b
commit 757bc5317a
3 changed files with 7 additions and 10 deletions

View File

@ -211,7 +211,7 @@ upload_data = {
### 开关
is_train = True # 是否训练
is_debug = False # 是否调试
is_eta = False # 是否使用eta接口
is_eta = True # 是否使用eta接口
is_timefurture = True # 是否使用时间特征
is_fivemodels = False # 是否使用之前保存的最佳的5个模型
is_edbcode = False # 特征使用edbcoding列表中的
@ -235,7 +235,7 @@ avg_cols = [
'PP拉丝L5E89出厂价河北、鲁北大唐内蒙多伦',
'PP拉丝HP550J市场价青岛金能化学'
]
offsite = 50
offsite = 80
offsite_col = ['PP拉丝HP550J市场价青岛金能化学']
horizon =5 # 预测的步长
input_size = 40 # 输入序列长度

View File

@ -20,8 +20,8 @@ plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号
from datetime import timedelta
from config_jingbo import *
# from config_juxiting import *
# from config_jingbo import *
from config_juxiting import *
from sklearn import metrics
from reportlab.pdfbase import pdfmetrics # 注册字体
from reportlab.pdfbase.ttfonts import TTFont # 字体类

View File

@ -140,10 +140,7 @@ def predict_main():
logger.info('制作报告ing')
title = f'{settings}--{now}-预测报告' # 报告标题
if 'Brent' in y:
brent_export_pdf(dataset=dataset,num_models = 5 if is_fivemodels else 22,time=end_time,
reportname=reportname,sqlitedb=sqlitedb),
else:
pp_export_pdf(dataset=dataset,num_models = 5 if is_fivemodels else 22,time=end_time,
reportname=reportname,sqlitedb=sqlitedb),