-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC minor update to make_classification about flip_y #18720
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
``weights`` exceeds 1. Note that the actual class proportions will | ||
not exactly match `weights` when `flip_y` isn't 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``weights`` exceeds 1. Note that the actual class proportions will | |
not exactly match `weights` when `flip_y` isn't 0. | |
``weights`` exceeds 1. Note that only if ``flip_y=0``, the actual class | |
proportions will exactly match ``weights``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I find the original phrasing more natural
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to avoid the double negative - just a suggestion.
|
||
flip_y : float, default=0.01 | ||
The fraction of samples whose class is assigned randomly. Larger | ||
values introduce noise in the labels and ma 8000 ke the classification | ||
task harder. Note that the default setting flip_y > 0 might lead | ||
to less than n_classes in y in some cases. | ||
to less than `n_classes` in y in some cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to less than `n_classes` in y in some cases. | |
to less than ``n_classes`` in y in some cases. |
Only because in this file double backticks seem to be used consistently.
Thanks for the review @lorentzenchr . I switched to double backticks but we typically don't care about single vs double backticks, so lets not go to far in the nitpicks with that ;) |
👍 |
Follow up to #18717 to prevent future confusion