def accuracy(pred, actual):
    """
      Calculates the accuracy of a classifier

      Args:
        pred: Predicted class labels
        actual: The actual class labels
    """
    return sum(pred == actual)/len(pred)