Skip to content

_find_neighbor_and_lambda off-by-one error#425

Open
ainkov wants to merge 1 commit intoscikit-learn-contrib:masterfrom
ainkov:prediction-off-by-one
Open

_find_neighbor_and_lambda off-by-one error#425
ainkov wants to merge 1 commit intoscikit-learn-contrib:masterfrom
ainkov:prediction-off-by-one

Conversation

@ainkov
Copy link
Copy Markdown

@ainkov ainkov commented Nov 5, 2020

Hi there, I believe there is an off-by-one error in taking the point to predict core distance.
Currently it's taking the 6th neighbor (if min_samples is 5) as the core distance.
It's what solved my issue in #381 , although you are the best to judge whether it's logically correct depending on the rest of the implementation.
Thanks and regards.

@pep8speaks
Copy link
Copy Markdown

Hello @ainkov, Thank you for submitting the Pull Request !

Line 139:21: W503 line break before binary operator
Line 247:22: W503 line break before binary operator
Line 308:44: W503 line break before binary operator
Line 310:56: W503 line break before binary operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants