Skip to content

Conversation

myenugula
Copy link
Contributor

Reference Issues/PRs

Fixes #28631

What does this implement/fix? Explain your changes.

It enables HDBSCAN to use "cosine" metric with "brute" or "auto" algorithms, enhancing clustering flexibility.

Copy link

github-actions bot commented Mar 19, 2024

✔️ Linting Passed

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

Generated for commit: 114353d. Link to the linter CI: here

Copy link
Contributor

@yuanx749 yuanx749 left a comment

Choose a reason for hiding this comment

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

Hi @myenugula , I think we can also include other valid pairwise metrics.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

The fix looks good. Just a few nitpicks

@jeremiedbb jeremiedbb changed the title Hdbscan cosine FIX HDBSCAN allows all pairwise metrics when algorithm="brute"/"auto" Apr 5, 2024
@myenugula myenugula requested review from jeremiedbb and yuanx749 April 7, 2024 20:55
@myenugula
Copy link
Contributor Author

@jeremiedbb thank you for the review. I updated the PR accordingly

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

I moved the changelog entry back into v1.5.rst because in the end we decided that 1.4.2 would only be about numpy 2 support. Sorry for the misleading request.

LGTM. Thanks @myenugula

@jeremiedbb jeremiedbb enabled auto-merge (squash) April 17, 2024 14:36
@jeremiedbb jeremiedbb merged commit 6ffeabd into scikit-learn:main Apr 17, 2024
@Superhzf
Copy link

Superhzf commented May 20, 2024

Which sklearn version should I install to have this update? The dev one?

@jeremiedbb
Copy link
Member

It will be available in the upcoming 1.5.0 ( very soon :) )

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.

HDBSCAN error with metric cosine
4 participants