
# https://www.globalsino.com/ICs/
# cosine distance


from scipy import spatial

list_reference = [6, 7, 67, 52]
list_A = [6, 8, 6, 9]
list_B = [6, 7, 67, 53]

distanceA = 1 - spatial.distance.cosine(list_reference, list_A)
print(distanceA)

distanceB = 1 - spatial.distance.cosine(list_reference, list_B)
print(distanceB)
