CardiovascularDisease/CVD/postprocessor.py
def model_group_mislabels(y_test, *preds):
    """
    Find the intersection of the set of all mislabels, false positives, and false negatives
    from a group or collection of estimators/models.

    PARAMETER preds: arrays/lists containing the predictions of the estimators/models.
    """

    mislabels, fp, fn = [], [], []

    for pred in preds:
        m, p, n = find_mislabels(y_test, pred)
        mislabels.append(m)
        fp.append(p)
        fn.append(n)

    common_mislabels = find_common_mislabels(*mislabels)
    common_fp = find_common_mislabels(*fp)
    common_fn = find_common_mislabels(*fn)

    return common_mislabels, common_fp, common_fn

    Find the intersection of the set of all mislabels, false positives, and false negatives
    from a group or collection of estimators/models.

    PARAMETER preds: arrays/lists containing the predictions of the estimators/models.
    
Find the intersection of the set of all mislabels, false positives, and false negatives
from a group or collection of estimators/models.

PARAMETER preds: arrays/lists containing the predictions of the estimators/models.
Find the intersection of the set of all mislabels false positives and false negatives from a group or collection of estimators / models . PARAMETER preds : arrays / lists containing the predictions of the estimators / models .
def model_group_mislabels(y_test, *preds):
    mislabels, fp, fn = [], [], []
    for pred in preds:
        m, p, n = find_mislabels(y_test, pred)
        mislabels.append(m)
        fp.append(p)
        fn.append(n)
    common_mislabels = find_common_mislabels(*mislabels)
    common_fp = find_common_mislabels(*fp)
    common_fn = find_common_mislabels(*fn)
    return common_mislabels, common_fp, common_fn
def model_group_mislabels ( y_test , * preds ) : mislabels , fp , fn = [ ] , [ ] , [ ] for pred in preds : m , p , n = find_mislabels ( y_test , pred ) mislabels . append ( m ) fp . append ( p ) fn . append ( n ) common_mislabels = find_common_mislabels ( * mislabels ) common_fp = find_common_mislabels ( * fp ) common_fn = find_common_mislabels ( * fn ) return common_mislabels , common_fp , common_fn
Find the intersection of the set of all mislabels, false positives, and false negatives
from a group or collection of estimators/models.
Find the intersection of the set of all mislabels false positives and false negatives from a group or collection of estimators / models .
"""
    Find the intersection of the set of all mislabels, false positives, and false negatives
    from a group or collection of estimators/models.

    PARAMETER preds: arrays/lists containing the predictions of the estimators/models.
    """
y_test