Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Updated docs for randint operator (#13541)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ChaiBapchya authored and aaronmarkham committed Dec 6, 2018
1 parent 8bbac82 commit e0ff3c3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 24 deletions.
20 changes: 11 additions & 9 deletions docs/api/python/ndarray/ndarray.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
6 changes: 4 additions & 2 deletions docs/api/python/ndarray/random.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
5 changes: 3 additions & 2 deletions docs/api/python/symbol/random.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
19 changes: 10 additions & 9 deletions docs/api/python/symbol/symbol.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/ndarray/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/symbol/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e0ff3c3

Please sign in to comment.