Repository navigation
DOC Refactor array API docs page - #34054
Conversation
This moves content around and reduces the amount of duplication in the examples. The content itself isn't changed. A new table at the top of the page lists the supported array producing libraries.
| - Supported Devices | ||
| - Notes | ||
| * - `PyTorch <https://pytorch.org/>`_ | ||
| - `Install <https://pytorch.org/get-started/locally/>`_ |
There was a problem hiding this comment.
For XPU, can you add this link? https://docs.pytorch.org/docs/2.12/notes/get_start_xpu.html
(you don't find those instructions in https://pytorch.org/get-started/locally/)
Maybe
| - `Install <https://pytorch.org/get-started/locally/>`_ | |
| - `Install <https://pytorch.org/get-started/locally/>`_; or [XPU install](https://docs.pytorch.org/docs/2.12/notes/get_start_xpu.html) | |
There was a problem hiding this comment.
I visited the "get started with XPU" page and https://intelpython.github.io/dpnp/quick_start_guide.html (the dpnp install link) where we state "see install link for driver setup" in the notes column. In the XPU case I saw the page and thought "yeah well, duh, you need drivers?!" and in the dpnp case I was not sure what the note was trying to tell me. All this makes me think: should we write a short subsection in the "Notes" section that adds two or three sentences to explain things a bit more and refer to it from the notes column? (We could also include the "XPU needs torch >= 2.12" in that section)
There was a problem hiding this comment.
I added a notes section. I realised as I was writing it that I am not sure what to include in it. What do you two think of what is in it now?
There was a problem hiding this comment.
LGTM, I'm not sure what to include in additions to what you wrote either.
|
|
||
| Common estimator checks | ||
| ======================= | ||
| Common estimator checks (for developers) |
There was a problem hiding this comment.
I was thinking we should start a "For developers" section (similar to the "Notes") one and include the common checks and "everything follows X" sections in it. But then I thought that maybe the "everything follows X" section is useful for users as well. Maybe it would benefit from splitting into a user focussed and a developer focussed one. At which point I decided to leave it as it is for now.
cakedev0
left a comment
There was a problem hiding this comment.
I think we can merge this PR as it is and iterate on a "for dev" section in another one.
Or we can iterate here.
(but I do think a for "dev section" would be nice, to remove noise from other sections)
|
Since is a doc PR, I think we can backport it to the 1.9.X branch once merged to main. |
There was a problem hiding this comment.
The doc min CI fails with the following warning:
'/home/circleci/project/doc/modules/array_api.rst:5: WARNING: Duplicate explicit target name: "install".
but I don't understand what particular change in this PR causes this.
EDIT: the rst links with a text that start with "Install" need to be updated to use two trailing underscores to generate anonymous references. Otherwise docutils implicitly generate named references with colliding names:
| - CUDA | ||
| - |
There was a problem hiding this comment.
CuPy also provides experimental support for AMD GPUs but no official binary packages. There is an AMD hosted pypi index (https://pypi.amd.com/simple) though. I haven't tested them:
| - CUDA | |
| - | |
| - CUDA | |
| - CuPy also provides experimental AMD GPU support via ROCm but this has not yet been tested with scikit-learn. |
There was a problem hiding this comment.
I would not link to it until we have done some basic testing or get a user who uses this and gives a 👍 . For me this feels like something that is covered under the "other compliant libraries will also work but we haven't tested them".
| - Supported Devices | ||
| - Notes | ||
| * - `PyTorch <https://pytorch.org/>`_ | ||
| - `Install <https://pytorch.org/get-started/locally/>`_ |
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
|
I think I'm happy with this if you are. 👍 on backporting |
ogrisel
left a comment
There was a problem hiding this comment.
I think it's a net improvement. Let's merge and refine later if needed.
|
Being part of the milestone is enough to get this backported or should I do something else? |
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Reference Issues/PRs
Follow up to #34021
What does this implement/fix? Explain your changes.
This moves content around and reduces the amount of duplication in the examples. The content itself isn't changed.
A new table at the top of the page lists the supported array producing libraries.
What do you think @ogrisel @cakedev0 ?
AI usage disclosure
I used AI assistance for: