Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for key in dict_1:
- cosines = []
- if key != dict_2[key]:
- cos = 1 - spatial.distance.cosine(vector_dic[value],control_vector_dic[value])
- cosines.append(cos)
- av = np.mean(cosines)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement