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/04/24 04:04:38 UTC

[incubator-mxnet] branch master updated: [MXNET-307] Update train/sparse seed (#10659)

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 007c0c5  [MXNET-307] Update train/sparse seed (#10659)
007c0c5 is described below

commit 007c0c54c3476bd40975f694f05d96a89eaa0397
Author: ThomasDelteil <th...@gmail.com>
AuthorDate: Mon Apr 23 21:04:32 2018 -0700

    [MXNET-307] Update train/sparse seed (#10659)
    
    * Update train.md
    
    * trigger build
    
    * fat finger typo
---
 docs/tutorials/sparse/train.md | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/tutorials/sparse/train.md b/docs/tutorials/sparse/train.md
index 0232281..ce70205 100644
--- a/docs/tutorials/sparse/train.md
+++ b/docs/tutorials/sparse/train.md
@@ -36,8 +36,13 @@ We can specify the `stype` of a variable as "csr" or "row_sparse" to hold sparse
 
 ```python
 import mxnet as mx
+import numpy as np
+import random
 
-mx.random.seed(42) # set the seed for repeatability
+# set the seeds for repeatability
+random.seed(42)
+np.random.seed(42)
+mx.random.seed(42) 
 
 # Create a variable to hold an NDArray
 a = mx.sym.Variable('a')

-- 
To stop receiving notification emails like this one, please contact
jxie@apache.org.