Basically, I have a dict in Python with string keys and arrays of ints as values.
dict = {"Option1Results" : [4, 1, 5, 2, 4],
"Option2Results" : [11, 44, 2, 1, 5],
....
}
I would like to implement hierarchical clustering on this dict based on the intersection of the values. For example, let's say Option1Results and Option4Results share about 70% of the same integers, then cluster them together. Is there a way to go about this other than looping through the dictionary and comparing the values one by one?