Understanding Regularization for Image Classification and Machine Learning