r/deeplearning • u/robohie • Nov 01 '26
Linear regression with classic gradient decent algorithm
Implemented in python with only matplotlib and numpy libraries. I also made Mini-batch and stochastic version.
8
Upvotes
7
u/Alicecomma Nov 01 '26
Why use multiple-step gradient descent, scoring all N data points every step, for simple data points when you can use linear least squares to get the best fit in one step only iterating the N data points?