未验证 提交 9d36b100 编写于 作者: S sys1874 提交者: GitHub

Update main_product.py

上级 ecbe2e32
...@@ -117,11 +117,11 @@ def train_loop(parser, start_program, main_program, test_p_list, ...@@ -117,11 +117,11 @@ def train_loop(parser, start_program, main_program, test_p_list,
exe.run(start_program) exe.run(start_program)
feat_init(place) feat_init(place)
max_acc=0 # 最佳test_acc max_acc=0 # best test_acc
max_step=0 # 最佳test_acc 对应step max_step=0 # step for best test_acc
max_val_acc=0 # 最佳val_acc max_val_acc=0 # best val_acc
max_cor_acc=0 # 最佳val_acc对应test_acc max_cor_acc=0 # test_acc for best val_acc
max_cor_step=0 # 最佳val_acc对应step max_cor_step=0 # step for best val_acc
#training loop #training loop
for epoch_id in range(parser.epochs): for epoch_id in range(parser.epochs):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册