(x, y)
return len(x & y) / len(x | y)
Compute the Jaccard similarity between two sets.
Compute the Jaccard similarity between two sets.
Compute the Jaccard similarity between two sets .
def jaccard(x, y):
    # type: (set, set) -> float
    """Compute the Jaccard similarity between two sets."""
    return len(x & y) / len(x | y)
def jaccard ( x , y ) : # type: (set, set) -> float return len ( x & y ) / len ( x | y )