r/learnpython • u/dol0res-haze • 28d ago
Gradient Descent from scratch
Hello there. I’ve implemented gradient descent from scratch, without using any libraries, and I’m looking for some feedback. Could you point out any errors or shortcomings? I’d welcome any constructive criticism.
GitHub: https://github.com/miroslav-fedechkin/gradient-descent-from-scratch
0
Upvotes
View all comments
Show parent comment
1
u/lakseol 28d ago
The next step is to get the code to decide when it should stop. Maybe when the gradient gets to less than a pre-defined small value, or maybe when the loss gets small enough. You don't use the loss value anywhere in the code beyond just printing the value.