TomasBahnik commented on issue #15383: [numpy] np.random.multinomial is 
different from _np
URL: 
https://github.com/apache/incubator-mxnet/issues/15383#issuecomment-552104837
 
 
   I am experiencing somehow similar issue on Windows with `mxnet 
1.6.0b20190926`  (example from d2l book)
   ```
   from mxnet import np, npx
   fair_probs = [1.0 / 6] * 6
   np.random.multinomial(10, fair_probs, size=1)
   Out[5]: array([[ 0,  0,  0,  0,  0, 10]], dtype=int64)
   np.random.multinomial(100, fair_probs, size=1)
   Out[6]: array([[  0,   0,   0,   0,   0, 100]], dtype=int64)
   np.random.multinomial(10000, fair_probs, size=1)
   Out[7]: array([[    0,     0,     0,     0,     0, 10000]], dtype=int64)
   np.random.multinomial(10000, fair_probs, size=3)
   Out[8]: 
   array([[    0,     0,     0,     0,     0, 10000],
          [ 1610,     0,     0,     0,     0,  8390],
          [ 1684,  1710,     0,     0,     0,  6606]], dtype=int64)
   ```

----------------------------------------------------------------
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

Reply via email to