[go: up one dir, main page]

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

FIX Improve HDBSCAN Error Message when checking for connected components #27678

Merged
merged 9 commits into from
Dec 4, 2023

Conversation

tataganesh
Copy link
Contributor

Reference Issues/PRs

Fixes #27436

What does this implement/fix? Explain your changes.

Currently, for HDBCAN, it is checked if the number of connected components of the mutual reachability graph is greater than one. If it is, an exception is raised stating that some elements in the distance matrix have less than min_samples neighbours. This exception is now split into two distinct exceptions -

  • One to check for connected components and indicate that HDBSCAN cannot work with a disconnected mutual reachability graph.
  • The other to indicate that some elements in the distance matrix have less than min_samples neighbours

- Separate connected components warning
@tataganesh tataganesh changed the title FIX: Improve HDBSCAN warning Improve HDBSCAN Error Message when checking for connected components Oct 28, 2023
@github-actions
Copy link
github-actions bot commented Oct 28, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: aaaf147. Link to the linter CI: here

@tataganesh tataganesh changed the title Improve HDBSCAN Error Message when checking for connected components FIX: Improve HDBSCAN Error Message when checking for connected components Oct 28, 2023
Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

I think this is worth to add an entry in the changelog as a fix that clarify the error message.

@glemaitre glemaitre changed the title FIX: Improve HDBSCAN Error Message when checking for connected components FIX Improve HDBSCAN Error Message when checking for connected components Oct 30, 2023
Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

Still LGTM. Need an additional reviewer to get it through.

@glemaitre glemaitre added the Waiting for Second Reviewer First reviewer is done, need a second one! label Nov 16, 2023
Copy link
Contributor
@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @tataganesh

@OmarManzoor OmarManzoor removed the Waiting for Second Reviewer First reviewer is done, need a second one! label Dec 4, 2023
@OmarManzoor OmarManzoor enabled auto-merge (squash) December 4, 2023 09:30
@OmarManzoor OmarManzoor merged commit ff6583a into scikit-learn:main Dec 4, 2023
26 checks passed
@tataganesh tataganesh deleted the hdbscan_warning_fix branch August 16, 2024 04:09
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.

Misleading error message for HDBSCAN exception
3 participants