A Margin-Based Measure of Generalization for Deep Networks