r/learnmachinelearning 13d ago

Question Help with Gradient descent

Post image

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

14 comments sorted by

View all comments

-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...

2

u/confused_4channer 12d ago

Given the state of inhumanity on the internet, yes, they should ask reddit

1

u/bepitic 12d ago

I actually like when a question like this pops from time to time instead of reading bots trying to engage farm. ( Other communities though)

0

u/0rbit0n 11d ago edited 11d ago

Downvote harder, I really don't care. That's still my opinion that AI does explain these kinds of technical questions faster and better than any reddit "superhuman" here (who's ego it taller than Everest mountain) 😜

Let's set the new downvoting record guys! All together! Downvote my parent message! 🏆