-
-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should raise an error message when n_groups > actual number of groups #7681
Comments
Can I give it a try? |
polmauri
added a commit
to polmauri/scikit-learn
that referenced
this issue
Oct 17, 2016
…cikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test.
polmauri
added a commit
to polmauri/scikit-learn
that referenced
this issue
Oct 17, 2016
…cikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test.
@polmauri can you sent a PR please? |
PR @ #7683 |
damn I didn't see the link between the commits. |
polmauri
added a commit
to polmauri/scikit-learn
that referenced
this issue
Oct 18, 2016
…cikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test.
polmauri
added a commit
to polmauri/scikit-learn
that referenced
this issue
Oct 18, 2016
…cikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test.
amueller
pushed a commit
that referenced
this issue
Oct 25, 2016
…#7681) (#7683) * FIX raise an error message when n_groups > actual number of groups (#7681) This change addresses issue #7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
fixed in #7683 |
amueller
pushed a commit
to amueller/scikit-learn
that referenced
this issue
Oct 25, 2016
…scikit-learn#7681) (scikit-learn#7683) * FIX raise an error message when n_groups > actual number of groups (scikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
amueller
pushed a commit
to amueller/scikit-learn
that referenced
this issue
Oct 27, 2016
…scikit-learn#7681) (scikit-learn#7683) * FIX raise an error message when n_groups > actual number of groups (scikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
sergeyf
pushed a commit
to sergeyf/scikit-learn
that referenced
this issue
Feb 28, 2017
…scikit-learn#7681) (scikit-learn#7683) * FIX raise an error message when n_groups > actual number of groups (scikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
Sundrique
pushed a commit
to Sundrique/scikit-learn
that referenced
this issue
Jun 14, 2017
…scikit-learn#7681) (scikit-learn#7683) * FIX raise an error message when n_groups > actual number of groups (scikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
paulha
pushed a commit
to paulha/scikit-learn
that referenced
this issue
Aug 19, 2017
…scikit-learn#7681) (scikit-learn#7683) * FIX raise an error message when n_groups > actual number of groups (scikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
maskani-moh
pushed a commit
to maskani-moh/scikit-learn
that referenced
this issue
Nov 15, 2017
…scikit-learn#7681) (scikit-learn#7683) * FIX raise an error message when n_groups > actual number of groups (scikit-learn#7681) This change addresses issue scikit-learn#7681: - Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut. - Add unit test. * Make requested changes - Check error message with `assert_raise_message` - Pass parameters to `assert_raise_message` instead of defining functions * Update condition and exception message
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
LeaveOneGroupOut
andLeavePGroupsOut
, when thegroups
supplied atsplit
time has fewer than or equal ton_groups
, we should raise an error.This was like that before in the
cross_validation
module too. I think we should raise an appropriate error message in both cases (LeavePGroupsOut
andLeaveOneGroupOut
)?@amueller @jnothman
The text was updated successfully, but these errors were encountered: