-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Partial Fix for Agglomerative clustering training error for seuclidean/mahalanobis affinity and single linkage #26961 #28076
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
Conversation
For Seuclidean and Mahalanobis metrics
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
@zeny07spartan are you still working on this? You've got some linter issues. |
Hello @adrinjalali, unfortunately I am not working on this issue anymore as it was part of a school project that ended. |
#26961 Original issue https://github.com/scikit-learn/scikit-learn/issues/26961
What does this implement/fix? Explain your changes.
Following Mickey774 comments, there are now arguments V or VI in the AgglomerativeClustering class in order to forward a Variance matrix or a Covariance matrix used by Seuclidean or Mahalanobis metrics. Documentation was updated to deprecate the term "affinity" and only use the term "metric". If V=None or VI=None or nothing is passed as argument and metric='seuclidean' or metric='mahalanobis', there will be an auto computation of the Variance or Covariance matrix.
Any other comments?
Tested on Jupyterlab, PyTest passed.
Any comments or suggestions welcome :)