CardiovascularDisease/CVD/postprocessor.py
def find_common_mislabels(*args):
    """
    Find mislabeled predictions that are common to several estimators/models.

    Note: This function can be used generally to find common entries in iterables
    by converting them to sets and finding their intersections.

    """

    common = set()
    for i in range(len(args) - 1):
        common.update(set(args[i]).intersection(set(args[i + 1])))

    return common

    Find mislabeled predictions that are common to several estimators/models.

    Note: This function can be used generally to find common entries in iterables
    by converting them to sets and finding their intersections.

    
Find mislabeled predictions that are common to several estimators/models.
Note: This function can be used generally to find common entries in iterables
by converting them to sets and finding their intersections.
Find mislabeled predictions that are common to several estimators / models . Note : This function can be used generally to find common entries in iterables by converting them to sets and finding their intersections .
def find_common_mislabels(*args):
    common = set()
    for i in range(len(args) - 1):
        common.update(set(args[i]).intersection(set(args[i + 1])))
    return common
def find_common_mislabels ( * args ) : common = set ( ) for i in range ( len ( args ) - 1 ) : common . update ( set ( args [ i ] ) . intersection ( set ( args [ i + 1 ] ) ) ) return common
Find mislabeled predictions that are common to several estimators/models.
Find mislabeled predictions that are common to several estimators / models .
"""
    Find mislabeled predictions that are common to several estimators/models.

    Note: This function can be used generally to find common entries in iterables
    by converting them to sets and finding their intersections.

    """