Statistically guided deep learning