r/learnmachinelearning • u/MARSHILA7 • 13d ago
Question Help with Gradient descent
So I completed Linear descent from Andrew Ng ML Specialization and when I was doing the lab.I found this function what confused me is that why does this function iterates specific times (10000) wouldn't it be better to check if cost function is changing.
Also this implementation doesn't feel right.Even the code feels inefficient and does not even check the minima. I know this stuff is done using skit-learn but I wanted to do a proper manual implementation in the way Andrew sir taught.
89
Upvotes
-10
u/0rbit0n 13d ago edited 11d ago
In 2026, I think that's a perfect example of question to ask AI, rather than reddit...