Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@tataganesh tataganesh requested a review from glemaitre November 16, 2023 07:03
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
@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