Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Fowlkes-Mallows scores

  • scikit-learn’s implementation, textbook algorithms and back-of-envelop calculations

Example 1

Loading...

Manual calculation of Folkes-Mallows score

tk = 2^2 + 1^2 + 1^2 + 2^2 - 6 = 4

pk = 3^2 + 3^2 - 6 = 12

qk = 2^2 + 2^2 + 2^2 - 6 = 6

FMI = 4 / sqrt(12*6) = 0.4714

Fowlkes-Mallows score calculated using scikit-learn
0.4714045207910317
Fowlkes-Mallows score calculated semi-automatically
0.4714045207910318

Example #2

Loading...
Fowlkes-Mallows score calculated using scikit-learn
0.4445299063132172
Fowlkes-Mallows score calculated semi-automatically
0.44452990631321715

Example #3

Loading...
Fowlkes-Mallows score calculated using scikit-learn
0.4968275423500662
Fowlkes-Mallows score calculated semi-automatically
0.4968275423500662

Example #4

Fowlkes-Mallows score calculated using scikit-learn
0.0
Fowlkes-Mallows score calculated semi-automatically
0.0

Example #5

Fowlkes-Mallows score calculated using scikit-learn
1.0
Fowlkes-Mallows score calculated semi-automatically
1.0