#182 · Machine learning and data science · 6.2 minLinear Regression From Scratch, Then scikit-learn
By hand and with scikit-learn, the slope came out at 5.77 both times. The true slope was 5.
Python 3.12.15 | numpy==2.5.4, scikit-learn==1.9.1, scipy==1.18.1, joblib==1.6.0, narwhals==2.27.1, threadpoolctl==3.7.0, cloudpickle==3.1.2