8000 Ignore underflow in LabelPropagation by warut-vijit · Pull Request #9384 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Ignore underflow in LabelPropagation #9384

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

Closed
wants to merge 1 commit into from

Conversation

warut-vijit
Copy link
Contributor

Reference Issue

Fixes #9313

What does this implement/fix? Explain your changes.

This pull request fixes issues of underflow and invalid value errors thrown from LabelPropagation, which are expected in certain data topologies. Error settings are temporarily changed to ignore invalid and under errors and restored at the end of the function.

Any other comments?

It appears that the issue of underflow for RBF and Laplacian kernels may occur for other models as well. I will try to go through SVMs and other models using kernel methods and see if this error appears.

@TomDLT
Copy link
Member
TomDLT commented Jul 17, 2017
  • I would rather use the syntax :
with np.errstate(under='ignore'):
    ...
  • Are you sure errors occurs from so many lines? Can you identify precisely which lines throw the underflow?
  • You will need to add a test, which fails on master and passes on this branch
  • You will need a bugfix entry in doc/whats_new.rst

@musically-ut
Copy link
Contributor

The checks can be moved inside self._get_kernel function, right at the site of the call to the function rbf_kernel. The example in the original issue can be used as the test case.

@jnothman
Copy link
Member
jnothman commented Jul 17, 2017 via email

@amueller amueller added the Superseded PR has been replace by a newer PR label Aug 5, 2019
Base automatically changed from master to main January 22, 2021 10:49
@jjerphan
Copy link
Member

Superseded by #19271 which fixes #9313.

@jjerphan jjerphan closed this Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:semi_supervised Superseded PR has been replace by a newer PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Underflows in LabelPropagation and LabelSpreading should be ignored.
6 participants
0