Nonparametric logistic regression with deep learning