You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flip_y in make_classification is misleading #14088
As per description of flip_y, it is "The fraction of samples whose class are randomly exchanged."
So when you have two classes one would expect by setting flip_y equal to 0.1, 10% of the labels flip (exchange), as the name suggest (flip_y). However, if you look at the source code 10% of the labels are assigned random labels which 50% of the time they are assigned their own labels so about 5% of labels are going to be flipped in the end.
The variable name, itself, is also misleading since it implies that the label gets "flipped", not set randomly, but changing the variable name will cause problems with backwards compatibility. Is it adequate to change the description of the variable and keep the variable name flip_y constant, or is changing the variable name to something like random_fraction an option?
The current description is: "The fraction of samples whose class are randomly exchanged. Larger
values introduce noise in the labels and make the classification
task harder."
We are suggesting: "The fraction of samples whose class is assigned randomly. Larger
values introduce noise in the labels and make the classification
task harder."
Is it adequate to change the description of the variable and keep the variable name flip_y constant, or is changing the variable name to something like random_fraction an option?
I think we would prefer not changing the variable name, and just improve the documentation.
Activity
jnothman commentedon Jun 14, 2019
kesshijordan commentedon Nov 2, 2019
working on this with @akeshavan at wimlds sklearn sprint
kesshijordan commentedon Nov 2, 2019
The variable name, itself, is also misleading since it implies that the label gets "flipped", not set randomly, but changing the variable name will cause problems with backwards compatibility. Is it adequate to change the description of the variable and keep the variable name
flip_yconstant, or is changing the variable name to something likerandom_fractionan option?akeshavan commentedon Nov 2, 2019
The current description is: "The fraction of samples whose class are randomly exchanged. Larger
values introduce noise in the labels and make the classification
task harder."
We are suggesting: "The fraction of samples whose class is assigned randomly. Larger
values introduce noise in the labels and make the classification
task harder."
Any other suggestions?
TomDLT commentedon Nov 2, 2019
I think we would prefer not changing the variable name, and just improve the documentation.