Re: [Numpy-discussion] PR 8053 np.random.multinomial tolerance param

2016-09-27 Thread Alex Beloi
distribution: https://www.tensorflow.org/versions/r0.10/api_docs/python/constant_op.html#multinomial On Mon, Sep 26, 2016 at 11:52 AM, Alex Beloi <a.be...@samsung.com> wrote: Hello, Pull Request: https://github.com/numpy/numpy/pull/8053 I would like to expose a tolerance par

[Numpy-discussion] PR 8053 np.random.multinomial tolerance param

2016-09-26 Thread Alex Beloi
Hello, Pull Request: https://github.com/numpy/numpy/pull/8053 I would like to expose a tolerance parameter for the function numpy.random.multinomial. The function `multinomial(n, pvals, size=None)` correctly raises exception when `sum(pvals) > 1 + 1e-12` as these values should sum to