ENH: Weighted logistic regression for lbfgs and newton-cg