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

[Cover complex] sklearn AgglomerativeClustering: Attribute affinity is deprecated #882

Closed
VincentRouvreau opened this issue May 22, 2023 · 0 comments
Assignees
Labels
3.9.0 GUDHI version 3.9.0

Comments

@VincentRouvreau
Copy link
Contributor

self.clustering = AgglomerativeClustering(n_clusters=None, linkage="single", distance_threshold=delta, affinity="euclidean")
else:
self.clustering = AgglomerativeClustering(n_clusters=None, linkage="single", distance_threshold=delta, affinity="precomputed")

Attribute affinity was deprecated in version 1.2 and will be removed in 1.4. Use metric instead.
cf. https://scikit-learn.org/stable/modules/generated/sklearn.cluster.AgglomerativeClustering.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9.0 GUDHI version 3.9.0
Projects
None yet
Development

No branches or pull requests

2 participants