Posted By

adkatrit on 02/11/11


Coefficient tanimototanimoto

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Tanimoto Coefficient

 / Published in: Python

  1. def tanimoto(a,b):
  2. c=[v for v in a if v in b]
  3. return float(len(c))/len(a)+len(b)-len(c))

Report this snippet  

You need to login to post a comment.