Heteroskedastic and Imbalanced Deep Learning with Adaptive Regularization