def square_loss(labels, predictions):
    """
    Compute the square loss between the true value (labels) and the predictions
    :param labels: (integer) true value for the target variable
    :param predictions: (float) prediction of the classification model
    :return: (float) square loss between true value and prediction
    """
    loss = 0
    for l, p in zip(labels, predictions):
        loss = loss + (l - p) ** 2

    loss = loss / len(labels)
    return loss