Thanks for pointing out the tensorflow multinomial implementation, this will cover my use case perfectly.
The documentation on raises is redundant as well, the relevant information is mentioned in the parameter description. I’ve closed the PR.
Cheers,
Alex
From: NumPy-Discussion [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of Stephan Hoyer
Sent: Monday, September 26, 2016 11:59 AM
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] PR 8053 np.random.multinomial tolerance param
I would actually be just as happy to relax the tolerance here to 1e-8 always. I doubt this would catch any fewer bugs than the current default. In contrast, adding new parameters adds cognitive overload for everyone encountering the function.
Also, for your use case note that tensorflow has it's own function for generating random values from a multinomial distribution:
https://www.tensorflow.org/versions/r0.10/api_docs/python/constant_op.html#m...
On Mon, Sep 26, 2016 at 11:52 AM, Alex Beloi