Skip to content

Instantly share code, notes, and snippets.

View jwcarr's full-sized avatar

Jon Carr jwcarr

View GitHub Profile
@jwcarr
jwcarr / vi.py
Last active May 26, 2023 15:24
Variation of information (VI)
View vi.py
# Variation of information (VI)
#
# Meila, M. (2007). Comparing clusterings-an information
# based distance. Journal of Multivariate Analysis, 98,
# 873-895. doi:10.1016/j.jmva.2006.11.013
#
# https://en.wikipedia.org/wiki/Variation_of_information
from math import log
@jwcarr
jwcarr / verification
Created January 20, 2016 21:43
onename_verification
View verification
Verifying that +joncarr is my blockchain ID. https://onename.com/joncarr