Package smile.validation.metric
Interface ClusteringMetric
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AdjustedMutualInformation
,AdjustedRandIndex
,MutualInformation
,NormalizedMutualInformation
,RandIndex
An abstract interface to measure the clustering performance.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
score
(int[] truth, int[] cluster) Returns a score to measure the quality of clustering.
-
Method Details
-
score
double score(int[] truth, int[] cluster) Returns a score to measure the quality of clustering.- Parameters:
truth
- the ground truth (or simply a clustering labels).cluster
- the alternative cluster labels.- Returns:
- the metric.
-