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 2017/12/18 18:16:33 UTC
[incubator-mxnet] branch master updated: added assertion to
validate accuracy (#9107)
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 d23b91d added assertion to validate accuracy (#9107)
d23b91d is described below
commit d23b91de52d0c17339d8a196f98df7778480de69
Author: Steffen Rochel <sr...@users.noreply.github.com>
AuthorDate: Mon Dec 18 10:16:28 2017 -0800
added assertion to validate accuracy (#9107)
Added assertion to validate achieved accuracy.
---
docs/tutorials/sparse/train.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/tutorials/sparse/train.md b/docs/tutorials/sparse/train.md
index 22ce039..d75f741 100644
--- a/docs/tutorials/sparse/train.md
+++ b/docs/tutorials/sparse/train.md
@@ -244,6 +244,7 @@ for epoch in range(10):
mod.backward() # compute gradients
mod.update() # update parameters
print('Epoch %d, Metric = %s' % (epoch, metric.get()))
+assert metric.get()[1] < 1, "Achieved MSE (%f) is larger than expected (1.0)" % metric.get()[1]
```
--
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].