You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/18 03:47:08 UTC

[GitHub] ChaiBapchya commented on issue #14183: Multinominal distribution returns same results during different runs

ChaiBapchya commented on issue #14183: Multinominal distribution returns same results during different runs
URL: https://github.com/apache/incubator-mxnet/issues/14183#issuecomment-464572662
 
 
   I tried it 6 times and looks like it ain't that bad
   But certainly need to delve deeper I guess
   
   ```
   >>> from mxnet import nd
   /Users/chaitanyabapat/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
     from ._conv import register_converters as _register_converters
   >>> 
   >>> data = nd.array([0.5, 0.5])
   >>> 
   >>> for k in range(3):
   ...     a = nd.random.multinomial(data, shape=(5, 1))
   ...     print(a)
   ... 
   
   [[1]
    [1]
    [1]
    [1]
    [1]]
   <NDArray 5x1 @cpu(0)>
   
   [[1]
    [1]
    [1]
    [0]
    [1]]
   <NDArray 5x1 @cpu(0)>
   
   [[1]
    [0]
    [0]
    [0]
    [1]]
   <NDArray 5x1 @cpu(0)>
   >>> for k in range(3):
   ...     a = nd.random.multinomial(data, shape=(5, 1))
   ...     print(a)
   ... 
   
   [[0]
    [1]
    [0]
    [0]
    [0]]
   <NDArray 5x1 @cpu(0)>
   
   [[1]
    [1]
    [1]
    [0]
    [1]]
   <NDArray 5x1 @cpu(0)>
   
   [[0]
    [1]
    [1]
    [0]
    [0]]
   <NDArray 5x1 @cpu(0)>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services