提交 338ef3c0 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!606 Fix code formats in summary_record.md for r0.6

Merge pull request !606 from lvmingfu/r0.6
...@@ -289,7 +289,7 @@ model.train(cnn_network, callbacks=[confusion_martrix]) ...@@ -289,7 +289,7 @@ model.train(cnn_network, callbacks=[confusion_martrix])
正确代码: 正确代码:
```python3 ```python3
... ...
summary_collector = SummaryCollecotor('./summary_dir') summary_collector = SummaryCollector('./summary_dir')
model.train(epoch=2, train_dataset, callbacks=[summary_collector]) model.train(epoch=2, train_dataset, callbacks=[summary_collector])
... ...
...@@ -299,8 +299,8 @@ model.train(cnn_network, callbacks=[confusion_martrix]) ...@@ -299,8 +299,8 @@ model.train(cnn_network, callbacks=[confusion_martrix])
错误代码: 错误代码:
```python3 ```python3
... ...
summary_collector1 = SummaryCollecotor('./summary_dir1') summary_collector1 = SummaryCollector('./summary_dir1')
summary_collector2 = SummaryCollecotor('./summary_dir2') summary_collector2 = SummaryCollector('./summary_dir2')
model.train(epoch=2, train_dataset, callbacks=[summary_collector1, summary_collector2]) model.train(epoch=2, train_dataset, callbacks=[summary_collector1, summary_collector2])
``` ```
...@@ -309,6 +309,6 @@ model.train(cnn_network, callbacks=[confusion_martrix]) ...@@ -309,6 +309,6 @@ model.train(cnn_network, callbacks=[confusion_martrix])
... ...
# Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data. # Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data.
confusion_callback = ConfusionMatrixCallback('./summary_dir1') confusion_callback = ConfusionMatrixCallback('./summary_dir1')
summary_collector = SummaryCollecotor('./summary_dir2') summary_collector = SummaryCollector('./summary_dir2')
model.train(epoch=2, train_dataset, callbacks=[confusion_callback, summary_collector]) model.train(epoch=2, train_dataset, callbacks=[confusion_callback, summary_collector])
``` ```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册