From 66d4e3c58229cc722a96b735af8f8d904ec83675 Mon Sep 17 00:00:00 2001 From: ChaiBapchya Date: Tue, 4 Dec 2018 14:57:55 -0800 Subject: [PATCH 1/5] updated docs for randint --- docs/api/python/ndarray/ndarray.md | 1 + docs/api/python/ndarray/random.md | 1 + docs/api/python/symbol/random.md | 1 + docs/api/python/symbol/symbol.md | 1 + 4 files changed, 4 insertions(+) diff --git a/docs/api/python/ndarray/ndarray.md b/docs/api/python/ndarray/ndarray.md index 6fcf1d428d2b..abbde0fc5e15 100644 --- a/docs/api/python/ndarray/ndarray.md +++ b/docs/api/python/ndarray/ndarray.md @@ -596,6 +596,7 @@ The `ndarray` package provides several classes: mxnet.ndarray.random.generalized_negative_binomial mxnet.ndarray.random.multinomial mxnet.ndarray.random.shuffle + mxnet.ndarray.random.randint mxnet.random.seed ``` diff --git a/docs/api/python/ndarray/random.md b/docs/api/python/ndarray/random.md index 3ea611f5c8e4..d907c4a6fe9c 100644 --- a/docs/api/python/ndarray/random.md +++ b/docs/api/python/ndarray/random.md @@ -37,6 +37,7 @@ In the rest of this document, we list routines provided by the `ndarray.random` uniform multinomial shuffle + randint mxnet.random.seed ``` diff --git a/docs/api/python/symbol/random.md b/docs/api/python/symbol/random.md index b93f641334f8..e6e3f9b7ac5d 100644 --- a/docs/api/python/symbol/random.md +++ b/docs/api/python/symbol/random.md @@ -37,6 +37,7 @@ In the rest of this document, we list routines provided by the `symbol.random` p uniform multinomial shuffle + randint mxnet.random.seed ``` diff --git a/docs/api/python/symbol/symbol.md b/docs/api/python/symbol/symbol.md index a4038d741741..507939884c02 100644 --- a/docs/api/python/symbol/symbol.md +++ b/docs/api/python/symbol/symbol.md @@ -595,6 +595,7 @@ Composite multiple symbols into a new one by an operator. mxnet.symbol.random.generalized_negative_binomial mxnet.symbol.random.multinomial mxnet.symbol.random.shuffle + mxnet.symbol.random.randint mxnet.random.seed ``` From 015d54a76754fdd84edc6f0bc17fa827252ad716 Mon Sep 17 00:00:00 2001 From: ChaiBapchya Date: Tue, 4 Dec 2018 18:49:28 -0800 Subject: [PATCH 2/5] added randint in __all__ and reordered acc to categorical then alphabetical --- docs/api/python/ndarray/ndarray.md | 2 +- docs/api/python/ndarray/random.md | 2 +- docs/api/python/symbol/random.md | 2 +- docs/api/python/symbol/symbol.md | 2 +- python/mxnet/ndarray/random.py | 2 +- python/mxnet/symbol/random.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/python/ndarray/ndarray.md b/docs/api/python/ndarray/ndarray.md index abbde0fc5e15..8760a49a3a95 100644 --- a/docs/api/python/ndarray/ndarray.md +++ b/docs/api/python/ndarray/ndarray.md @@ -587,6 +587,7 @@ The `ndarray` package provides several classes: .. autosummary:: :nosignatures: + mxnet.ndarray.random.randint mxnet.ndarray.random.uniform mxnet.ndarray.random.normal mxnet.ndarray.random.gamma @@ -596,7 +597,6 @@ The `ndarray` package provides several classes: mxnet.ndarray.random.generalized_negative_binomial mxnet.ndarray.random.multinomial mxnet.ndarray.random.shuffle - mxnet.ndarray.random.randint mxnet.random.seed ``` diff --git a/docs/api/python/ndarray/random.md b/docs/api/python/ndarray/random.md index d907c4a6fe9c..65256221d4b7 100644 --- a/docs/api/python/ndarray/random.md +++ b/docs/api/python/ndarray/random.md @@ -34,10 +34,10 @@ In the rest of this document, we list routines provided by the `ndarray.random` negative_binomial normal poisson + randint uniform multinomial shuffle - randint mxnet.random.seed ``` diff --git a/docs/api/python/symbol/random.md b/docs/api/python/symbol/random.md index e6e3f9b7ac5d..70cea0cc5332 100644 --- a/docs/api/python/symbol/random.md +++ b/docs/api/python/symbol/random.md @@ -34,10 +34,10 @@ In the rest of this document, we list routines provided by the `symbol.random` p negative_binomial normal poisson + randint uniform multinomial shuffle - randint mxnet.random.seed ``` diff --git a/docs/api/python/symbol/symbol.md b/docs/api/python/symbol/symbol.md index 507939884c02..f5f725d1d988 100644 --- a/docs/api/python/symbol/symbol.md +++ b/docs/api/python/symbol/symbol.md @@ -586,6 +586,7 @@ Composite multiple symbols into a new one by an operator. .. autosummary:: :nosignatures: + mxnet.symbol.random.randint mxnet.symbol.random.uniform mxnet.symbol.random.normal mxnet.symbol.random.gamma @@ -595,7 +596,6 @@ Composite multiple symbols into a new one by an operator. mxnet.symbol.random.generalized_negative_binomial mxnet.symbol.random.multinomial mxnet.symbol.random.shuffle - mxnet.symbol.random.randint mxnet.random.seed ``` diff --git a/python/mxnet/ndarray/random.py b/python/mxnet/ndarray/random.py index fc8be571e2e3..78339a020862 100644 --- a/python/mxnet/ndarray/random.py +++ b/python/mxnet/ndarray/random.py @@ -25,7 +25,7 @@ __all__ = ['uniform', 'normal', 'randn', 'poisson', 'exponential', 'gamma', 'multinomial', 'negative_binomial', 'generalized_negative_binomial', - 'shuffle'] + 'shuffle', 'randint'] def _random_helper(random, sampler, params, shape, dtype, ctx, out, kwargs): diff --git a/python/mxnet/symbol/random.py b/python/mxnet/symbol/random.py index c5940ac96a50..34663cddf02c 100644 --- a/python/mxnet/symbol/random.py +++ b/python/mxnet/symbol/random.py @@ -23,7 +23,7 @@ __all__ = ['uniform', 'normal', 'poisson', 'exponential', 'gamma', 'multinomial', - 'negative_binomial', 'generalized_negative_binomial', 'shuffle'] + 'negative_binomial', 'generalized_negative_binomial', 'shuffle', 'randint'] def _random_helper(random, sampler, params, shape, dtype, kwargs): From f81f8308163031fcbe56a82097dd17b9dbdbdc75 Mon Sep 17 00:00:00 2001 From: ChaiBapchya Date: Tue, 4 Dec 2018 19:51:24 -0800 Subject: [PATCH 3/5] Trigger CI From 087eca794bc2850935e97f9e75207dd3df70c049 Mon Sep 17 00:00:00 2001 From: ChaiBapchya Date: Wed, 5 Dec 2018 10:47:52 -0800 Subject: [PATCH 4/5] minus mxnet.symbol and alphabetical for ndarray,symbol.md --- docs/api/python/ndarray/ndarray.md | 20 ++++++++++---------- docs/api/python/symbol/symbol.md | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/api/python/ndarray/ndarray.md b/docs/api/python/ndarray/ndarray.md index 8760a49a3a95..2e07f959e05b 100644 --- a/docs/api/python/ndarray/ndarray.md +++ b/docs/api/python/ndarray/ndarray.md @@ -587,16 +587,16 @@ The `ndarray` package provides several classes: .. autosummary:: :nosignatures: - mxnet.ndarray.random.randint - mxnet.ndarray.random.uniform - mxnet.ndarray.random.normal - mxnet.ndarray.random.gamma - mxnet.ndarray.random.exponential - mxnet.ndarray.random.poisson - mxnet.ndarray.random.negative_binomial - mxnet.ndarray.random.generalized_negative_binomial - mxnet.ndarray.random.multinomial - mxnet.ndarray.random.shuffle + random.exponential + random.gamma + random.generalized_negative_binomial + random.negative_binomial + random.normal + random.poisson + random.randint + random.uniform + random.multinomial + random.shuffle mxnet.random.seed ``` diff --git a/docs/api/python/symbol/symbol.md b/docs/api/python/symbol/symbol.md index f5f725d1d988..a4b2fc4bec1d 100644 --- a/docs/api/python/symbol/symbol.md +++ b/docs/api/python/symbol/symbol.md @@ -586,16 +586,16 @@ Composite multiple symbols into a new one by an operator. .. autosummary:: :nosignatures: - mxnet.symbol.random.randint - mxnet.symbol.random.uniform - mxnet.symbol.random.normal - mxnet.symbol.random.gamma - mxnet.symbol.random.exponential - mxnet.symbol.random.poisson - mxnet.symbol.random.negative_binomial - mxnet.symbol.random.generalized_negative_binomial - mxnet.symbol.random.multinomial - mxnet.symbol.random.shuffle + random.exponential + random.gamma + random.generalized_negative_binomial + random.negative_binomial + random.normal + random.poisson + random.randint + random.uniform + random.multinomial + random.shuffle mxnet.random.seed ``` From cb58fcea19065797dc2d07091176ca13ab18b22d Mon Sep 17 00:00:00 2001 From: ChaiBapchya Date: Wed, 5 Dec 2018 17:59:48 -0800 Subject: [PATCH 5/5] alphabetical order --- docs/api/python/ndarray/ndarray.md | 5 +++-- docs/api/python/ndarray/random.md | 5 +++-- docs/api/python/symbol/random.md | 4 ++-- docs/api/python/symbol/symbol.md | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/api/python/ndarray/ndarray.md b/docs/api/python/ndarray/ndarray.md index 2e07f959e05b..6419c4ed4067 100644 --- a/docs/api/python/ndarray/ndarray.md +++ b/docs/api/python/ndarray/ndarray.md @@ -590,13 +590,14 @@ The `ndarray` package provides several classes: random.exponential random.gamma random.generalized_negative_binomial + random.multinomial random.negative_binomial random.normal random.poisson random.randint - random.uniform - random.multinomial + random.randn random.shuffle + random.uniform mxnet.random.seed ``` diff --git a/docs/api/python/ndarray/random.md b/docs/api/python/ndarray/random.md index 65256221d4b7..60c565dd5528 100644 --- a/docs/api/python/ndarray/random.md +++ b/docs/api/python/ndarray/random.md @@ -31,13 +31,14 @@ In the rest of this document, we list routines provided by the `ndarray.random` exponential gamma generalized_negative_binomial + multinomial negative_binomial normal poisson randint - uniform - multinomial + randn shuffle + uniform mxnet.random.seed ``` diff --git a/docs/api/python/symbol/random.md b/docs/api/python/symbol/random.md index 70cea0cc5332..1ecaf38830fc 100644 --- a/docs/api/python/symbol/random.md +++ b/docs/api/python/symbol/random.md @@ -31,13 +31,13 @@ In the rest of this document, we list routines provided by the `symbol.random` p exponential gamma generalized_negative_binomial + multinomial negative_binomial normal poisson randint - uniform - multinomial shuffle + uniform mxnet.random.seed ``` diff --git a/docs/api/python/symbol/symbol.md b/docs/api/python/symbol/symbol.md index a4b2fc4bec1d..9eba2618065b 100644 --- a/docs/api/python/symbol/symbol.md +++ b/docs/api/python/symbol/symbol.md @@ -589,13 +589,13 @@ Composite multiple symbols into a new one by an operator. random.exponential random.gamma random.generalized_negative_binomial + random.multinomial random.negative_binomial random.normal random.poisson random.randint - random.uniform - random.multinomial random.shuffle + random.uniform mxnet.random.seed ```