提交 78ab433b 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!787 synchronization_training_and_evaluation.md: Modify some error.

Merge pull request !787 from lvmingfu/master
......@@ -244,8 +244,8 @@
" cur_epoch = cb_param.cur_epoch_num\n",
" if cur_epoch % self.eval_per_epoch == 0:\n",
" acc = self.model.eval(self.eval_dataset, dataset_sink_mode=True)\n",
" epoch_per_eval[\"epoch\"].append(cur_epoch)\n",
" epoch_per_eval[\"acc\"].append(acc[\"Accuracy\"])\n",
" self.epoch_per_eval[\"epoch\"].append(cur_epoch)\n",
" self.epoch_per_eval[\"acc\"].append(acc[\"Accuracy\"])\n",
" print(acc)\n"
]
},
......
# 同步训练和验证模型
# 同步训练和验证模型
<!-- TOC -->
......@@ -58,8 +58,8 @@ class EvalCallBack(Callback):
cur_epoch = cb_param.cur_epoch_num
if cur_epoch % self.eval_per_epoch == 0:
acc = self.model.eval(self.eval_dataset, dataset_sink_mode=True)
epoch_per_eval["epoch"].append(cur_epoch)
epoch_per_eval["acc"].append(acc["Accuracy"])
self.epoch_per_eval["epoch"].append(cur_epoch)
self.epoch_per_eval["acc"].append(acc["Accuracy"])
print(acc)
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册