The generalization gap is how much better a model does on data it trained on than on data it has not seen. The paper's point is that this gap can be near 100 percent for random labels, while staying small for real labels.
Implement generalization_gap(train_acc, test_acc), returning the training accuracy minus the test accuracy.
Subtract the two numbers.
No results yet
Run your code to check it against the examples, or submit to run every test.