Scientific Computing in Python · Lecture 6 · Winter 2026

Logistic regression and a neural-network classifier

Reading guide

  1. Logistic scoresp. 1
  2. Bernoulli negative log likelihoodp. 1
  3. Gradient descent and regularizationp. 2
  4. A nonlinear hidden layerp. 3
  5. Confusion countsp. 4
  6. A controlled model comparisonp. 4

Computation and practice