[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 raise error in HDBSCAN with precomputed X and request centers #27898

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

glemaitre
Copy link
Member

closes #27893

Raise a proper ValueError when requesting storing center and metric="precomputed".

Copy link
github-actions bot commented Dec 4, 2023

✔️ Linting Passed

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

Generated for commit: 5164e24. Link to the linter CI: here

Copy link
Member
@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

LGTM

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.

LGTM. Just a small request

@@ -699,6 +699,11 @@ def fit(self, X, y=None):
Returns self.
"""
self._validate_params()
Copy link
Member

Choose a reason for hiding this comment

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

can you replace this by a

    @_fit_context(
        # HDBSCAN.metric is not validated yet
        prefer_skip_nested_validation=False
    )

context ?

@thomasjpfan thomasjpfan merged commit 9ef1b9d into scikit-learn:main Dec 6, 2023
27 checks passed
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.

sklearn.cluster.HDBSCAN shape error when making medoids with precomputed metric
3 participants