/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def tanimoto(a,b): c=[v for v in a if v in b] return float(len(c))/len(a)+len(b)-len(c))
def tanimoto(a,b): c=[v for v in a if v in b] return float(len(c))/len(a)+len(b)-len(c))