-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Agglomerative clustering training error for seuclidean/mahalanobis affinity and single linkage #26961
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
Comments
The other linkage implementations use |
So a few things in play here. First, the documentation for Second, the support for general pairwise distance metrics can actually be extended to even when Third, we do not have any mechanism to forward metric keyword arguments to the underlying metric, so those like Each of these could probably use their own PR 😅 |
Hello ! I am new on GitHub and I would like to contribute. |
So I am just checking here, do we want to depreciate all affinity parameters in sklearn/cluster/_agglomerative.py? There are around 28 instances both in documentation and code of affinity, but only 3 mentions in the AgglomerativeClustering class. there are also numerous test cases mentioning affinity in some private classes as well as public there |
It is my understanding that @Micky774 has split this problem into three distinct categories. I claim this. View my PR here: I will continue with the other categories sequentially. |
@Micky774 this sounds like it would required a PR of its own. Should you create an issue? |
Describe the bug
When trying Agglomerative clustering model training with the affinity as 'seuclidean' or 'mahalanobis' and the linkage as 'single' the training fails. The same affinity values along with other linkage such as 'average' options executes for model training. There's no specification given for this issue. Also, in the code I can see the handling for the single linkage is different and there is some cython code which is not accessible.
Steps/Code to Reproduce
Expected Results
No error should be thrown sig
Actual Results
Versions
The text was updated successfully, but these errors were encountered: