def get_accuracy(y_true, y_predicted):
    """Compute the accuracy for given predicted class labels.

    Parameters
    ----------
    y_true: numpy array
        The true class labels of shape=(number_points,).
    y_predicted: numpy array
        The predicted class labels of shape=(number_points,).

    Returns
    ---------
    accuracy: float
        The accuracy of the predictions.
    """
    correct_answers = (y_predicted == y_true).astype(int)  # will have 1 when the prediction and the actual label match
    accuracy = float(sum(correct_answers)) / float(len(correct_answers))
    return accuracy