Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from clusim.clustering import Clustering, print_clustering
  2. from clusim.sim import nmi
  3.  
  4. c1 = Clustering(elm2clu_dict = {0:[0], 1:[1], 2:[2]})
  5. c2 = Clustering(elm2clu_dict = {0:[0], 1:[1], 2:[1]})
  6. print_clustering(c1)
  7. 0|1|2
  8. print_clustering(c2)
  9. 0|12
  10. nmi(c1, c2, norm_type = 'min')
  11. 1.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement