def get_accuracy(y_bar, y_pred):
  """
  Computes what percent of the total testing data the model classified correctly.

  :param y_bar: List of ground truth classes for each example.
  :param y_pred: List of model predicted class for each example.

  :return: Returns a real number between 0 and 1 for the model accuracy.
    """
  correct = 0
  for i in range(len(y_bar)):
    if y_bar[i] == y_pred[i]:

      correct += 1
    accuracy = (correct / len(y_bar)) * 100.0
    return accuracy