Calculates the accuracy of the model by taking the mean of the number of times the truth, \(y\), equals the predicted, \(\hat{y}\).
Calculates the accuracy of the model by taking the mean of the number of times the truth, \(y\), equals the predicted, \(\hat{y}\).