如果为is_fivemodels为真,不修改最佳模型文档
This commit is contained in:
parent
2896312a48
commit
53b30ab7a7
@ -274,8 +274,11 @@ def model_losss(sqlitedb,end_time):
|
||||
# 保存5个最佳模型的名称
|
||||
if len(modelnames) > 5:
|
||||
modelnames = modelnames[0:5]
|
||||
with open(os.path.join(dataset,"best_modelnames.txt"), 'w') as f:
|
||||
f.write(','.join(modelnames) + '\n')
|
||||
if is_fivemodels:
|
||||
pass
|
||||
else:
|
||||
with open(os.path.join(dataset,"best_modelnames.txt"), 'w') as f:
|
||||
f.write(','.join(modelnames) + '\n')
|
||||
|
||||
# 预测值与真实值对比图
|
||||
plt.rcParams['font.sans-serif'] = ['SimHei']
|
||||
|
Loading…
Reference in New Issue
Block a user