From e0ff3c36ee171386fef01fb86c54c343e4b04c14 Mon Sep 17 00:00:00 2001 From: Chaitanya Prakash Bapat Date: Wed, 5 Dec 2018 21:58:19 -0800 Subject: [PATCH] Updated docs for randint operator (#13541) * updated docs for randint * added randint in __all__ and reordered acc to categorical then alphabetical * Trigger CI * minus mxnet.symbol and alphabetical for ndarray,symbol.md * alphabetical order --- docs/api/python/ndarray/ndarray.md | 20 +++++++++++--------- docs/api/python/ndarray/random.md | 6 ++++-- docs/api/python/symbol/random.md | 5 +++-- docs/api/python/symbol/symbol.md | 19 ++++++++++--------- python/mxnet/ndarray/random.py | 2 +- python/mxnet/symbol/random.py | 2 +- 6 files changed, 30 insertions(+), 24 deletions(-) diff --git a/docs/api/python/ndarray/ndarray.md b/docs/api/python/ndarray/ndarray.md index 6fcf1d428d2b..6419c4ed4067 100644 --- a/docs/api/python/ndarray/ndarray.md +++ b/docs/api/python/ndarray/ndarray.md @@ -587,15 +587,17 @@ The `ndarray` package provides several classes: .. autosummary:: :nosignatures: - 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.multinomial + random.negative_binomial + random.normal + random.poisson + random.randint + 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 3ea611f5c8e4..60c565dd5528 100644 --- a/docs/api/python/ndarray/random.md +++ b/docs/api/python/ndarray/random.md @@ -31,12 +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 - uniform - multinomial + randint + randn shuffle + uniform mxnet.random.seed ``` diff --git a/docs/api/python/symbol/random.md b/docs/api/python/symbol/random.md index b93f641334f8..1ecaf38830fc 100644 --- a/docs/api/python/symbol/random.md +++ b/docs/api/python/symbol/random.md @@ -31,12 +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 - uniform - multinomial + randint shuffle + uniform mxnet.random.seed ``` diff --git a/docs/api/python/symbol/symbol.md b/docs/api/python/symbol/symbol.md index a4038d741741..9eba2618065b 100644 --- a/docs/api/python/symbol/symbol.md +++ b/docs/api/python/symbol/symbol.md @@ -586,15 +586,16 @@ Composite multiple symbols into a new one by an operator. .. autosummary:: :nosignatures: - 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.multinomial + random.negative_binomial + random.normal + random.poisson + random.randint + random.shuffle + random.uniform 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):