def calculate_accuracy(y_target, y_pred):
  """Returns accuracy
  # Arguments
    y_target: true label data
    y_pred: estimated label data
  # Returns
    accuracy
  """

  return y_target[y_target == y_pred].size * 1.0 / y_target.size