Logistic RegressionBinary logistic regression as a Bernoulli GLM: setup, cross-entropy objective, and gradient-based fitting.