def ind_loss(method):
    """
    Extract individual loss from full name of method.

    Args:
        method (str): full name of method

    Returns:
        str: individual loss
    """
    if method[:6] == "hinge_":
        return "Hinge"
    if method[:9] == "logistic_":
        return "Logistic"
    if method[:7] == "sklearn":
        return "sklearn"