Linear and logistic regression implemented from scratch with NumPy and applied to oil-well logs. The regression reconstructs a missing log (PE) in wells where it was not recorded; the classification separates marine from non-marine intervals.
• From-scratch models match scikit-learn to within 1e-7, with gradients verified numerically
• Bias–variance study with polynomial features and L2 regularisation
• Every model evaluated on wells held out entirely from training
• Marine / non-marine accuracy on test wells: 0.838, against 0.520 for the benchmark
0 likes · 0 views · Nov 18, 2026
Linear and logistic regression built from scratch in NumPy, validated against scikit-learn and applied to reconstruct missing well logs.