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

Commit e0ff3c3

Browse files
ChaiBapchyaaaronmarkham
authored andcommitted
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
1 parent 8bbac82 commit e0ff3c3

File tree

6 files changed

+30
-24
lines changed

6 files changed

+30
-24
lines changed

docs/api/python/ndarray/ndarray.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,17 @@ The `ndarray` package provides several classes:
587587
.. autosummary::
588588
:nosignatures:
589589
590-
mxnet.ndarray.random.uniform
591-
mxnet.ndarray.random.normal
592-
mxnet.ndarray.random.gamma
593-
mxnet.ndarray.random.exponential
594-
mxnet.ndarray.random.poisson
595-
mxnet.ndarray.random.negative_binomial
596-
mxnet.ndarray.random.generalized_negative_binomial
597-
mxnet.ndarray.random.multinomial
598-
mxnet.ndarray.random.shuffle
590+
random.exponential
591+
random.gamma
592+
random.generalized_negative_binomial
593+
random.multinomial
594+
random.negative_binomial
595+
random.normal
596+
random.poisson
597+
random.randint
598+
random.randn
599+
random.shuffle
600+
random.uniform
599601
mxnet.random.seed
600602
```
601603

docs/api/python/ndarray/random.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ In the rest of this document, we list routines provided by the `ndarray.random`
3131
exponential
3232
gamma
3333
generalized_negative_binomial
34+
multinomial
3435
negative_binomial
3536
normal
3637
poisson
37-
uniform
38-
multinomial
38+
randint
39+
randn
3940
shuffle
41+
uniform
4042
mxnet.random.seed
4143
```
4244

docs/api/python/symbol/random.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ In the rest of this document, we list routines provided by the `symbol.random` p
3131
exponential
3232
gamma
3333
generalized_negative_binomial
34+
multinomial
3435
negative_binomial
3536
normal
3637
poisson
37-
uniform
38-
multinomial
38+
randint
3939
shuffle
40+
uniform
4041
mxnet.random.seed
4142
```
4243

docs/api/python/symbol/symbol.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -586,15 +586,16 @@ Composite multiple symbols into a new one by an operator.
586586
.. autosummary::
587587
:nosignatures:
588588
589-
mxnet.symbol.random.uniform
590-
mxnet.symbol.random.normal
591-
mxnet.symbol.random.gamma
592-
mxnet.symbol.random.exponential
593-
mxnet.symbol.random.poisson
594-
mxnet.symbol.random.negative_binomial
595-
mxnet.symbol.random.generalized_negative_binomial
596-
mxnet.symbol.random.multinomial
597-
mxnet.symbol.random.shuffle
589+
random.exponential
590+
random.gamma
591+
random.generalized_negative_binomial
592+
random.multinomial
593+
random.negative_binomial
594+
random.normal
595+
random.poisson
596+
random.randint
597+
random.shuffle
598+
random.uniform
598599
mxnet.random.seed
599600
```
600601

python/mxnet/ndarray/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
__all__ = ['uniform', 'normal', 'randn', 'poisson', 'exponential', 'gamma',
2727
'multinomial', 'negative_binomial', 'generalized_negative_binomial',
28-
'shuffle']
28+
'shuffle', 'randint']
2929

3030

3131
def _random_helper(random, sampler, params, shape, dtype, ctx, out, kwargs):

python/mxnet/symbol/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
__all__ = ['uniform', 'normal', 'poisson', 'exponential', 'gamma', 'multinomial',
26-
'negative_binomial', 'generalized_negative_binomial', 'shuffle']
26+
'negative_binomial', 'generalized_negative_binomial', 'shuffle', 'randint']
2727

2828

2929
def _random_helper(random, sampler, params, shape, dtype, kwargs):

0 commit comments

Comments
 (0)