Generalization experiments measure errors on the training labels and on held-out labels. The error rate is the simplest measure: the fraction of predictions that disagree with the label.
Implement error_rate(pred, y), returning the fraction of mismatched predictions.
Compare the arrays elementwise, average the boolean mismatches.
No results yet
Run your code to check it against the examples, or submit to run every test.