Skip to content
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

FastMKS segfault fix #1986

Merged
merged 3 commits into from Aug 26, 2019
Merged

FastMKS segfault fix #1986

merged 3 commits into from Aug 26, 2019

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Aug 22, 2019

I dug into #1767 and found that the issue is actually not the fact that the hyperbolic tangent kernel is only conditionally positive definite. Instead, for the optdigits dataset, the issue is that the dot product between each point is sufficiently large that every kernel evaluation is identical---meaning that the distance between points is always 0.

This then means that the cover tree gets built in a weird way that is actually invalid. So I fixed this bug in e584aea.

While I was in there, I also made the FastMKS binding check for a valid value of k, if it is passed, and added a test for it. And I hid the Log::Fatal output from the one test that tries to load nonexistentfile.arff. :)

Copy link
Member

@zoq zoq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, no comments from my side.

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval provided automatically after 24 hours. 👍

@rcurtin rcurtin merged commit fff2357 into mlpack:master Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants