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 2018/10/10 06:50:00 UTC

[GitHub] ZhennanQin opened a new issue #12779: symbol.rand_zipfian doc provides mismatch example

ZhennanQin opened a new issue #12779: symbol.rand_zipfian doc provides mismatch example
URL: https://github.com/apache/incubator-mxnet/issues/12779
 
 
   In python/mxnet/symbol/contrib.py:
   
   ```
   def rand_zipfian(true_classes, num_sampled, range_max):
   ...
       Examples
       --------
       >>> true_cls = mx.nd.array([3])
       >>> samples, exp_count_true, exp_count_sample = mx.nd.contrib.rand_zipfian(true_cls, 4, 5)
       >>> samples
       [1 3 3 3]
       <NDArray 4 @cpu(0)>
       >>> exp_count_true
       [ 0.12453879]
       <NDArray 1 @cpu(0)>
       >>> exp_count_sample
       [ 0.22629439  0.12453879  0.12453879  0.12453879]
       <NDArray 4 @cpu(0)>
   ```
   This example is for NDArray version, but the symbol one. This will cause end-user misleading.

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