# pairs with distances
fit, sight -> 95.41
woman, sight -> 90.75
woman, fit -> 89.92
beach, sight -> 94.16
beach, fit -> 95.25
beach, woman -> 87.62
was, sight -> 63.17
was, fit -> 61.78
was, woman -> 35.36
was, beach -> 47.52
man, sight -> 81.84
man, fit -> 80.75
man, woman -> 52.44
man, beach -> 75.87
man, was -> 18.46
# distance matrix
0:
1: 95
2: 90 89
3: 94 95 87
4: 63 61 35 47
5: 81 80 52 75 18
# words
["sight", "fit", "woman", "beach", "was", "man"]
# clusterization result
# [ <clusters>, <error>, <number of iterations> ]
[[0, 1, 4, 4, 4, 4], 101.33926230814765, 23]
[[0, 1, 4, 4, 4, 4], 101.33926230814765, 32]
[[0, 1, 4, 4, 4, 4], 101.33926230814765, 34]
[[0, 1, 4, 4, 4, 4], 101.33926230814765, 28]
[[0, 1, 4, 4, 4, 4], 101.33926230814765, 19]
[[0, 1, 4, 4, 4, 4], 101.33926230814765, 25]
# clustered words
[["woman", "beach", "was", "man"], ["fit"], ["sight"]]
Last active
August 29, 2015 14:07
-
-
Save Zhomart/9bc3b678ef10e24ceab7 to your computer and use it in GitHub Desktop.
Example 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment