You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/07/29 19:05:12 UTC

[GitHub] jeremiedb opened a new issue #7247: [R] sample.multinomial not working

jeremiedb opened a new issue #7247: [R] sample.multinomial not working
URL: https://github.com/apache/incubator-mxnet/issues/7247
 
 
   Usage of mx.nd.multinomial in R-package seems broken. A numeric value is returned rather than the expected integer. Maybe it has to do with the `int32` format returned by the operator?
   
   ```
   probs <- c(0, 0.1, 0.2, 0.3, 0.4)
   probs <- cbind(probs, rev(probs))
   probs <- mx.nd.array(probs)
   mx.nd.sample.multinomial(data = probs, shape=1, get_prob = F)
   
                [,1] [,2]
   [1,] 2.802597e-45    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