def convert_label(indicator):
    """
    Convert binary class labels to +1/-1
    :param indicator: target classes
    :return: +1/-1
    """
    if indicator == 1:
        return +1
    else:
        return -1