def jaccard_coefficient(x,y):
    """
    Jaccard index used to display the similarity between sample sets.
    :param A: set x
    :param y: set y
    :return: similarity of A and B or A intersect B
    """
    return len(set(x) & set(y)) / len(set(x) | set(y))