Measure the similarity of two clusterings of a set of points.
The Fowlkes-Mallows index (FMI) is defined as the geometric mean of
the precision and recall:
FMI=TP
/
sqrt
((
TP
+
FP
)
*
(
TP
+
FN
))
Where TP is the number of True Positive (i.e. the number of pairs of
points that belong to the same cluster in both labels_true and
labels_pred), FP is the number of False Positive (i.e. the
number of pairs of points that belong to the same cluster in
labels_pred but not in labels_true) and FN is the number of
False Negative (i.e. the number of pairs of points that belong to the
same cluster in labels_true but not in labels_pred).
The score ranges from 0 to 1. A high value indicates a good similarity
between two clusters.