[QST] Updating indices creation for split
See original GitHub issueI am interested in using GridSearchCV machinery from sklearn with non-numpy libraries like cuDF or dask.array. In exploring this work, I think functions like _iter_test_indices and _iter_test_masks could be amended slightly to return slices instead of numpy arrays.
For example in _iter_test_indices:
https://github.com/scikit-learn/scikit-learn/blob/ec35ed226ca104e841238f2fac24269c2f9f2730/sklearn/model_selection/_split.py#L423-L436
If there is a shuffle, much of the code could be encapsulated in the shuffle conditional. And when there is
no shuffle, we can yield the appropriate slice object: slice(0, 71)…
I wanted to check here before proceeding with the work and/or if folks have any advice before I begin?
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (15 by maintainers)
Top Results From Across the Web
Split index API and updating "index ... - GitHub
The split index API requires that an index to be created with the setting number_of_routing_shards . This means that this API cannot be...
Read more >Update nested QStackWidget when QListWidget index changes
I have a QListWidget with 5 items (so 5 rows) and 2 related QStackedWidgets . The first made of 3 pages: the first...
Read more >26 Split Fixed Assets
26 Split Fixed Assets · Creates Item Master records for the new assets generated during the split based on the original asset master...
Read more >Let's clear up the confusion around the slice( ), splice( ), & split ...
Copies elements from an array · Returns them as a new array · Doesn't change the original array · Starts slicing from …...
Read more >Why it's updating indices again and again? making it ...
The ide is "Updating Indices" of JDK, 3rd jars, .gradle/ folder etc again and again and again when openning the project.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

we kinda only need to distinguish it from an integer or None, right? We could check for a single common method existing. If we then try to use some obscure method and it’s not implemented, well that’s a reasonable error. If it has a
uniformmethod it’s much more likely to be something that implements sampling than an integer, I think 😉It would be great if someone wanted to try to prototype Array API spec support in scikit-learn Cross-Validation tools in a draft PR on top of the #22554 PR.