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

Fixes simple error in _validate_clusterer #668

Merged
merged 1 commit into from
May 29, 2024

Conversation

pujaltes
Copy link
Contributor

Reference issues/PRs

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Screenshots (if appropriate)

Any other comments?

Checklist

  • I have read the guidelines for contributing.
  • My code follows the code style of this project. I used flake8 to check my Python changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed. I used pytest to check this on Python tests.

Function for checking if clusterer uses both precomputed affinity and metric (example:sklearn.cluster.AgglomerativeClustering) previously resulted in an error even when not using precomputed metric. This was because the list comprehension to check if there was a precomputed metric parameter resulted in a boolean list instead of a list of parameters set to "precomputed". This small change fixes that bug and ensures the expected behaviour.
@matteocao
Copy link
Contributor

thank you for your contribution @pujaltes !

I will force merge this PR and try to make sure the CI runs again.

@matteocao matteocao merged commit 643ca49 into giotto-ai:master May 29, 2024
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