Compare commits

..

No commits in common. "c78c6fc3ef37a3a85b907888f875f2f76561f51b" and "fa210fa6a8e04e30dca35b7be2c32c5861aa2703" have entirely different histories.

2 changed files with 9 additions and 3 deletions

View File

@ -397,7 +397,7 @@ def predict_main():
end_time=global_config['end_time'], end_time=global_config['end_time'],
) )
logger.info('模型训练完成') # logger.info('模型训练完成')
logger.info('训练数据绘图ing') logger.info('训练数据绘图ing')
model_results3 = model_losss(sqlitedb, end_time=end_time) model_results3 = model_losss(sqlitedb, end_time=end_time)
@ -415,6 +415,14 @@ def predict_main():
logger.info('模型训练完成') logger.info('模型训练完成')
push_market_value() push_market_value()
# # LSTM 单变量模型
# ex_Lstm(df,input_seq_len=input_size,output_seq_len=horizon,is_debug=is_debug,dataset=dataset)
# # lstm 多变量模型
# ex_Lstm_M(df,n_days=input_size,out_days=horizon,is_debug=is_debug,datasetpath=dataset)
# # GRU 模型
# # ex_GRU(df)
# 发送邮件 # 发送邮件
# m = SendMail( # m = SendMail(

View File

@ -948,8 +948,6 @@ def model_losss(sqlitedb, end_time):
'accuracy', where_condition=f"created_dt <= '{end_time}'") 'accuracy', where_condition=f"created_dt <= '{end_time}'")
if len(df_combined) < 100: if len(df_combined) < 100:
len(df_combined) + '' len(df_combined) + ''
if df_combined['y'].isnull().sum() / len(df_combined) > 0.8:
len(df_combined) + ''
except: except:
df_combined = loadcsv(os.path.join( df_combined = loadcsv(os.path.join(
config.dataset, "cross_validation.csv")) config.dataset, "cross_validation.csv"))