sklearn_utils/utils/data_utils.py
def check_reference_label(y, ref_label):
    '''
    :param list y: label
    :param ref_label: reference label
    '''
    set_y = set(y)
    if ref_label not in set_y:
        raise ValueError('There is not reference label in dataset. '
                         "Reference label: '%s' "
                         'Labels in dataset: %s' % (ref_label, set_y))
def check_reference_label(y, ref_label):
    '''
    :param list y: label
    :param ref_label: reference label
    '''
    set_y = set(y)
    if ref_label not in set_y:
        raise ValueError('There is not reference label in dataset. '
                         "Reference label: '%s' "
                         'Labels in dataset: %s' % (ref_label, set_y))
def check_reference_label ( y , ref_label ) : set_y = set ( y ) if ref_label not in set_y : raise ValueError ( 'There is not reference label in dataset. ' "Reference label: '%s' " 'Labels in dataset: %s' % ( ref_label , set_y ) )
:param list y: label
    :param ref_label: reference label
: param list y : label : param ref_label : reference label