Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. for key in dict_1:
  2. cosines = []
  3. if key != dict_2[key]:
  4. cos = 1 - spatial.distance.cosine(vector_dic[value],control_vector_dic[value])
  5. cosines.append(cos)
  6. av = np.mean(cosines)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement