Академический Документы
Профессиональный Документы
Культура Документы
ARGUEDAS
Haciendo
Recomendaciones
INVESTIGACION
Ervin Lewis | tpicos especiales |
3 Implementacin en python
# Inputs: two lists
# Output: the Tanimoto Coefficient
def tanimoto (list1, list2):
intersection = [common_item for common_item in list1 if common_item in list2]
return float(len(c))/(len(a) + len(b) - len(c))
PGINA 2