def hinge_loss(predicted_value: float, real_label: float) -> float:
    """
    Computes hinge loss for given predicted value, given the real label.

    :param predicted_value: inner product of data sample and coefficient
            vector, possibly corrected by intercept
    :param real_label: Real label
    :return: Hinge loss of datapoint
    """
    return max(0, 1 - real_label * predicted_value)