haojin2 commented on a change in pull request #17541: [numpy] add op random.rayleigh URL: https://github.com/apache/incubator-mxnet/pull/17541#discussion_r378675457
########## File path: python/mxnet/ndarray/numpy/random.py ########## @@ -279,6 +280,44 @@ def multinomial(n, pvals, size=None): return _npi.multinomial(n=n, pvals=pvals, size=size) +def rayleigh(scale=1.0, size=None, ctx=None, out=None): + r"""Draw samples from a Rayleigh distribution. + + The :math:`\chi` and Weibull distributions are generalizations of the + Rayleigh. + + Parameters + ---------- + scale : float or array_like of floats, optional Review comment: not `array_like`, we should only support either `mx.numpy.ndarray` or a float scalar. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services