Live Coding Logistic Regression with L2 Regularization & Mini-Batch SGD in Pure Numpy assesses an ML engineer's foundational mathematical derivations, Sigmoid activations, cross-entropy gradient calculus, and matrix broadcasting; model formulation:
P(y=1∣x)=σ(Xw+b)=1+e−(Xw+b)1; with an L2 penalty, the objective is
L(w)=−N1∑[yln(y^)+(1−y)ln(1−y^)]+2Nλ∥w∥2; exact analytical gradient is
∇wL=N1XT(y^−y)+Nλw; Mini-Batch SGD updates weights via
w←w−η∇wL until convergence.