Skip to content

Small documentation update#52

Closed
turian wants to merge 1 commit intoscikit-learn:masterfrom
turian:master
Closed

Small documentation update#52
turian wants to merge 1 commit intoscikit-learn:masterfrom
turian:master

Conversation

@turian
Copy link
Copy Markdown

@turian turian commented Jan 18, 2011

No description provided.

@agramfort
Copy link
Copy Markdown
Member

I think we should do something about it. The pb has been raised in the past and solved in GridSearchCV with

            ind = np.arange(X.shape[0])
            train = ind[train]
            test = ind[test]

when X is sparse.

shall all cross-val objects should be able to return indices rather than mask?

loo = LeaveOneOut(n, mask=False)

???

@ogrisel
Copy link
Copy Markdown
Member

ogrisel commented Jan 18, 2011

@agramfort +1
but I'll let Gael decide on this one.

@GaelVaroquaux
Copy link
Copy Markdown
Member

+1 on Alex's proposal, but I wonder if we can have a more explicit argument. Something like 'indices=True' :).

G

@agramfort
Copy link
Copy Markdown
Member

#54

feed back welcome

@GaelVaroquaux
Copy link
Copy Markdown
Member

@agramfort: looks good in general.

Joseph, would that solve your needs? Also, the documentation should be updated to mention this, in a way similar to what Joseph had originally proposed.

@agramfort
Copy link
Copy Markdown
Member

done in : #54

Joseph? happy with that?

@agramfort
Copy link
Copy Markdown
Member

I assume yes...

adam2392 added a commit to PSSF23/scikit-learn-stream that referenced this pull request Aug 11, 2023
Merging latest changes from sklearn main

#### What does this implement/fix? Explain your changes.


#### Any other comments?


<!--
Please be aware that we are a loose team of volunteers so patience is
necessary; assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
For more information, see our FAQ on this topic:

http://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.

Thanks for contributing!
-->

---------

Signed-off-by: Adam Li <adam2392@gmail.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants