Repository navigation
DOC Array API examples - #33564
DOC Array API examples#33564betatim wants to merge 1 commit into
Conversation
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
|
FYI xref #32886
If we do find anything, I think it would be nice to add a test (if possible). |
👍 |
|
|
||
| pipe = make_pipeline( | ||
| StandardScaler(), | ||
| PCA(svd_solver="full"), |
There was a problem hiding this comment.
What happens with the new solver for PCA?
|
Maybe it would be nice to include these examples with a link to colab so people can run them One thing that needs figuring out is how to mark these as "don't run them" for the gallery, because they take a long time to run and need "weird" dependencies. (Maybe by not naming the file |
There are a few ways to do it:
Note that Sphinx has the |
What does this implement/fix? Explain your changes.
This PR contains several examples that show off GPU support (via array API) in scikit-learn. Some of them focus on speed up, some of them show how your pipeline is simpler if you don't have to transfer from GPU to CPU, and one shows the kind of mixed input (numbers and strings) where text processing happens on the CPU.
I don't think we want to add these to the gallery, but I wanted to share them and making a PR feels like a good way to do this. The goal of having examples is to try and find bugs and other warts in our array API support. Things that you only find or notice if you use things together (think "integration tests").
It would be great to hear what other people think about these examples and things that are missing.
AI usage disclosure
I used AI assistance for:
ping @ogrisel @lucyleeow
related #33444 #32886 #32873