You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/04/10 16:58:23 UTC
[GitHub] piiswrong closed pull request #10479: [MXNET-301] Setting a fixed
seed for module tutorial
piiswrong closed pull request #10479: [MXNET-301] Setting a fixed seed for module tutorial
URL: https://github.com/apache/incubator-mxnet/pull/10479
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/docs/tutorials/basic/module.md b/docs/tutorials/basic/module.md
index 2d449518131..11a3ffbc51d 100644
--- a/docs/tutorials/basic/module.md
+++ b/docs/tutorials/basic/module.md
@@ -43,6 +43,7 @@ logging.getLogger().setLevel(logging.INFO)
import mxnet as mx
import numpy as np
+mx.random.seed(1234)
fname = mx.test_utils.download('http://archive.ics.uci.edu/ml/machine-learning-databases/letter-recognition/letter-recognition.data')
data = np.genfromtxt(fname, delimiter=',')[:,1:]
label = np.array([ord(l.split(',')[0])-ord('A') for l in open(fname, 'r')])
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services