diff --git a/config_jingbo.py b/config_jingbo.py index 6e38e5e..1576513 100644 --- a/config_jingbo.py +++ b/config_jingbo.py @@ -159,7 +159,7 @@ warning_data = { "funcModule":'原油特征停更预警', "funcOperation":'原油特征停更预警', "data":{ - 'WARNING_TYPE_NAME':'特征数据停更预警test', + 'WARNING_TYPE_NAME':'特征数据停更预警', 'WARNING_CONTENT':'', 'WARNING_DATE':'' } @@ -181,7 +181,7 @@ warning_data = { ### 开关 is_train = True # 是否训练 is_debug = False # 是否调试 -is_eta = True # 是否使用eta接口 +is_eta = False # 是否使用eta接口 is_timefurture = True # 是否使用时间特征 is_fivemodels = False # 是否使用之前保存的最佳的5个模型 is_edbcode = False # 特征使用edbcoding列表中的 diff --git a/dataset/jbsh_yuanyou.db b/dataset/jbsh_yuanyou.db index b4e2e6f..8aa81a6 100644 Binary files a/dataset/jbsh_yuanyou.db and b/dataset/jbsh_yuanyou.db differ diff --git a/dataset/原油指标数据.xlsx b/dataset/原油指标数据.xlsx index e69de29..653ab17 100644 Binary files a/dataset/原油指标数据.xlsx and b/dataset/原油指标数据.xlsx differ diff --git a/lib/dataread.py b/lib/dataread.py index 0d1d236..d7b9572 100644 --- a/lib/dataread.py +++ b/lib/dataread.py @@ -138,7 +138,7 @@ def upload_warning_info(last_update_times_df,y_last_update_time): if len(warning_data_df) > 0: content = '原油特征指标预警信息:\n\n' warning_data_df = warning_data_df.sort_values(by='停更周期',ascending=False) - fixed_length = 30 + fixed_length = 20 warning_data_df['特征名称'] = warning_data_df['特征名称'].str.replace(" ", "") content = warning_data_df.to_string(index=False, col_space=fixed_length) @@ -194,6 +194,8 @@ def create_feature_last_update_time(df): except KeyError: time_diff = 0 early_warning_date = end_time + continue + values = values + [time_diff,early_warning_date,stop_update_period] last_update_times_df.loc[len(last_update_times_df)] = values