advanced code snippet search
adkatrit on 02/11/11
1 person have marked this snippet as a favorite
def tanimoto(a,b): c=[v for v in a if v in b] return float(len(c))/len(a)+len(b)-len(c))
Report this snippet
You need to login to post a comment.