def actual_jaccard(data1, data2):
    """A util function to get the real 'jaccard similarity'

    Args:
        data1: array-like of shape
        data2: array-like of shape
    
    Returns:
        float: the real jaccard similarity
    """

    s1 = set(data1)
    s2 = set(data2)
    actual_jaccard = float(len(s1.intersection(s2)) / len(s1.union(s2)))

    return actual_jaccard