def get_accuracy(y_pred, y_test):
    """
    Get the prediction accuracy, which is number of correct predictions / number of all predictions.
    :param y_pred:
    :param y_test:
    :return: prediction accuracy
    """
    good = 0
    for i, pred in enumerate(y_pred):
        if pred == y_test[i]:
            good += 1
    return (good + 0.0) / len(y_pred)