Add documentation for patching utilities and interfaces#107
Add documentation for patching utilities and interfaces#107ndgrigorian wants to merge 3 commits intomasterfrom
interfaces#107Conversation
8b56414 to
d26d763
Compare
d26d763 to
fe7b7a2
Compare
|
@antonwolfy @jharlow-intel PR is ready for review |
Alternatively, it can be downloaded through GH action |
| Class MKLRandomState | ||
| ==================== | ||
|
|
||
| .. autoclass:: mkl_random.MKLRandomState |
There was a problem hiding this comment.
The rendered page has # no-cython-lint. Is there a way to suppress the linter warning without being shown on the generated page?
|
|
||
| .. autoclass:: mkl_random.interfaces.numpy_random.RandomState | ||
| :members: | ||
| :undoc-members: |
There was a problem hiding this comment.
The same here: # noqa: E501,W505
| ------------------------------------------------------------- | ||
|
|
||
| :mod:`mkl_random.interfaces.numpy_random` is a drop-in replacement for the legacy portion of | ||
| :mod:`numpy.random`. |
There was a problem hiding this comment.
Should it be a ref on numpy.random page?
| .. note:: | ||
| While the API is the same, :mod:`mkl_random.interfaces.numpy_random` is **not** seed-compatible | ||
| with :mod:`numpy.random`. Given the same seed, the two modules will produce different sequences. | ||
| The output of `get_state` and accepted input to `set_state` may also differ. It is not |
There was a problem hiding this comment.
Should here be a ref on functions?
| The output of `get_state` and accepted input to `set_state` may also differ. It is not | |
| The output of :func:`get_state` and accepted input to :func:`set_state` may also differ. It is not |
|
|
||
| .. autoclass:: mkl_random.interfaces.numpy_random.RandomState | ||
| :members: | ||
| :undoc-members: |
There was a problem hiding this comment.
The link on numpy.random.RandomState is not clicable:
For full documentation refer to numpy.random.RandomState.
|
|
||
| .. autosummary:: | ||
|
|
||
| mkl_random.interfaces.numpy_random.rand |
There was a problem hiding this comment.
The link on page with numpy corresponding functions are not working.
|
|
||
| mkl_random.interfaces.numpy_random.seed | ||
| mkl_random.interfaces.numpy_random.get_state | ||
| mkl_random.interfaces.numpy_random.set_state |
There was a problem hiding this comment.
Should it be clickable to go from the table to the function description?
| ============================ | ||
|
|
||
| :mod:`mkl_random` can temporarily replace functions and classes in :mod:`numpy.random` with | ||
| :mod:`mkl_random`implementations from the :ref:`numpy interface <numpy_random_interface>`. |
There was a problem hiding this comment.
| :mod:`mkl_random`implementations from the :ref:`numpy interface <numpy_random_interface>`. | |
| :mod:`mkl_random` implementations from the :ref:`numpy interface <numpy_random_interface>`. |
| modules using :mod:`mkl_random` implementations. Currently, only a NumPy interface is provided, | ||
| but more may be added in the future. | ||
|
|
||
|
|
There was a problem hiding this comment.
Should we updat examples in brngs description with MKLRandomState? (I mean pages, like: rendered%20documentation/reference/mt19937.html)
There was a problem hiding this comment.
The same is about example on How-to guide (documentation/how_to.html)
There was a problem hiding this comment.
And Beginner's guide (documentation/tutorials.html)
|
|
||
| The reference guide contains a detailed description of class :class:`mkl_random.RandomState` and its methods. | ||
| The reference guide contains a detailed description of class :class:`mkl_random.MKLRandomState`, | ||
| the :ref:`interfaces <interfaces>` submodule, and :ref:`NumPy patching <patching>` utilities. |
There was a problem hiding this comment.
All links here are referred on documentation/reference/index.html page, but I guess, it should be on specific section with detailed description.
This PR adds documentation for patching and for the
interfacessubmodule