-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Labels don't stay clamped in LabelPropagation #3550
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
Comments
@mattphotonman I think you're right. It seems like the alpha was not handled correctly and, currently, hard clamping takes place for alpha = 0. |
ping @GaelVaroquaux |
Cool! (Do I have to close this?) |
If it's verified and confirmed to work, then it should be qualified to be get closed. However, we might wait for @GaelVaroquaux , because he marked the issue as a bug. |
We'll close the issue once the PR is merged. Sorry for the very slow reply. |
In some cases the labels don't stay clamped in
LabelPropagation
. For example:I think the problem occurs in label_propagation.py at line 235 and line 249. When
alpha
is equal to 1,y_static
is set to 0 in line 235, and then line 249 doesn't changeself.label_distributions_
, whereas it should clamp the values of the labelled data points.My understanding from the documentation is that for
LabelPropagation
it is always supposed to do hard clamping, and thus it should be completely independent ofalpha
. I'm not actually sure what the intention was here since the samefit
method is used forLabelSpreading
.The text was updated successfully, but these errors were encountered: