def binary_accuracy(y_true, y_pred):
    """Accuracy for binary data
    
    :param y_true: Real values on which to compare.
    :type y_true: numpy.array
    :param y_pred: Predicted values
    :type y_pred: numpy.array
    
    :return: Binary accuracy (in percent)
    :rtype: float
    """
    return (y_true == y_pred).mean()
