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