Binary classification via logistic regression, weights learned by gradient descent