In master, there's a fast logistic function in `sklearn.utils.extmath`.