Documentation indices for Random Samplers incomplete
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
Thanks for submitting this issue @asmushetzel @mxnet-label-bot[Doc, Unclear Error/Doc]
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.
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.
@aaronmarkham has the fix for this gone out yet?
No, I don't think it has. I can't see any updates for it. These are also missing on beta.mxnet.io.
@IvyBazan - can you please take a look at this one?
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.