BarnabasMarkus

BarnabasMarkus / TanimotoCoefficientSimilarityScoreCalculator / 0.1.0

README.md

The Tanimoto coefficient is a measure of the similarity of two sets.


Input:

  • (Required): A list contains 2 lists.

Output:

  • The Tanimoto coefficient of the two lists.


For example:

Input:

[["orange", "milk"], ["orange", "apple", "banana"]]

Output:

0.25

Or you can use it with numbers also:

Input:

[[2,3,4,5,6], [5,6,7]]

Output:

0.3333333333333333