You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2018/01/05 19:40:17 UTC
[incubator-mxnet] branch master updated: added assert for achieved
accuracy (#9106)
This is an automated email from the ASF dual-hosted git repository.
jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 898eab3 added assert for achieved accuracy (#9106)
898eab3 is described below
commit 898eab3b00e16c3e9a50d6f2c9d512e396ca4479
Author: Steffen Rochel <sr...@users.noreply.github.com>
AuthorDate: Fri Jan 5 11:40:13 2018 -0800
added assert for achieved accuracy (#9106)
* added assert for achieved accuracy
Add assert to ensure expected accuracy, increase number epoch to 20 to achieve higher accuracy with min. runtime impact.
* Update module.md
changing num_epoch to 21 to trigger new build
---
docs/tutorials/basic/module.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/tutorials/basic/module.md b/docs/tutorials/basic/module.md
index 48f9086..6141f3e 100644
--- a/docs/tutorials/basic/module.md
+++ b/docs/tutorials/basic/module.md
@@ -224,6 +224,7 @@ It can be used as follows:
```python
score = mod.score(val_iter, ['acc'])
print("Accuracy score is %f" % (score[0][1]))
+assert score[0][1] > 0.77, "Achieved accuracy (%f) is less than expected (0.77)" % score[0][1]
```
Accuracy score is 0.789250
@@ -290,10 +291,11 @@ initializing randomly from scratch. We also set the `begin_epoch` parameter so t
```python
mod = mx.mod.Module(symbol=sym)
mod.fit(train_iter,
- num_epoch=8,
+ num_epoch=21,
arg_params=arg_params,
aux_params=aux_params,
begin_epoch=3)
+assert score[0][1] > 0.77, "Achieved accuracy (%f) is less than expected (0.77)" % score[0][1]
```
INFO:root:Epoch[3] Train-accuracy=0.544125
--
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].