mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Documentation indices for Random Samplers incomplete

Open asmushetzel opened this issue 8 years ago • 7 comments

Description

All operators that sample from multiple distributions are not referenced in the "Random sampling" section of ndarray- and symbolic-API (sample_uniform, sample_normal, sample_exponential, ....). As a result, they can only be found by browsing through the full API (where they are documented), means that nobody will be aware off them other than by accident. They had been correctly referenced some time ago, somehow they got forgotten now. Seems that they also are not part of the random namespace

Environment info (Required)

MXNet 1.2.1

asmushetzel avatar Sep 11 '18 12:09 asmushetzel

Thanks for submitting this issue @asmushetzel @mxnet-label-bot[Doc, Unclear Error/Doc]

kalyc avatar Sep 11 '18 16:09 kalyc

Hi @asmushetzel I can see what you're seeing. In the top-most sections that are overviews, you see specific includes using Sphinx autosummary. https://github.com/apache/incubator-mxnet/blame/master/docs/api/python/symbol/symbol.md#L589-L598

.. autosummary::
    :nosignatures:
    mxnet.symbol.random.uniform
    mxnet.symbol.random.normal
...

But near the end in the API reference section you see a variety of blanket includes of all members or imported-members or special-members: https://github.com/apache/incubator-mxnet/blame/master/docs/api/python/symbol/symbol.md#L702-L713

.. automodule:: mxnet.symbol.random
    :members:

I'm thinking this is the cause of why some ops are missing in the overview sections. I see a lot of this through the API docs: specific callouts instead of including all of the members. I get that in some cases you want to organize the output, but this means things don't get included in the automatically generated docs. I wonder how one can find the other blind spots without doing side-by-side comparisons on everything.

However, comparing things directly isn't exactly easy even if it is slow and painful. I was baffled by the lack of results in GitHub for sample_uniform - only C operators and nothing in Python. This is found under _sample_uniform once you vector in on some unique comments, and that's because you pointed out things were missing. Thanks for that! This will be a great thing to fix.

aaronmarkham avatar Sep 26 '18 22:09 aaronmarkham

Great, looking forward for a fix. Please keep in mind, that these operators should also be part of the "random" namespace. Think this is important to fix, people simply won't see what exists so assume that MXNet just has plane nothing for certain tasks. Bad for reputation.

asmushetzel avatar Sep 28 '18 16:09 asmushetzel

@aaronmarkham has the fix for this gone out yet?

sojiadeshina avatar Jan 23 '19 22:01 sojiadeshina

No, I don't think it has. I can't see any updates for it. These are also missing on beta.mxnet.io.

aaronmarkham avatar Jan 24 '19 00:01 aaronmarkham

@IvyBazan - can you please take a look at this one?

aaronmarkham avatar Jan 25 '19 00:01 aaronmarkham

It seems that the autosummary sections have specific callouts because of Sphinx limitations with autosummary. I tried a few things like using automodule and tinkering with the autosummary options to automatically include all members of mxnet.symbol.random, but didn't have any luck getting closer to desired functionality.

IvyBazan avatar Feb 01 '19 00:02 IvyBazan