Clustering accuracy is a popular metric. In addition to classification accuracy, it employs the Hungarian algorithm to align the predicted pseudo labels and the ground truth labels.
Current implementations of clustering accuracy use either scipy.optimize.linear_sum_assignment or the munkres package for Hungarian. I'm not sure if this is allowed for torchmetrics, and a custom implementation needs to be added if not.
Pitch
Implement clustering accuracy in torchmetrics.clustering
🚀 Feature
Motivation
Clustering accuracy is a popular metric. In addition to classification accuracy, it employs the Hungarian algorithm to align the predicted pseudo labels and the ground truth labels.
Current implementations of clustering accuracy use either
scipy.optimize.linear_sum_assignment
or themunkres
package for Hungarian. I'm not sure if this is allowed for torchmetrics, and a custom implementation needs to be added if not.Pitch
Implement clustering accuracy in
torchmetrics.clustering