r/MLQuestions • • Dec 07 '21

[Code Link in Comment] Understanding and working of Gradient descent

145 Upvotes

14 comments sorted by

2

u/codegrandrounds Apr 03 '25

Super nice visualization

1

u/unknown_137 Apr 03 '25

glad you like it

1

u/naranath Dec 08 '21

Can you please share the code?

1

u/juspreet51 Dec 08 '21

Cool simulation. Do you have the link to this simulation or code?

1

u/Apathiq Dec 08 '21

Looks great, thank you! but maybe a strongly convex function is not the best example for the video :)

2

u/unknown_137 Dec 08 '21

This video is for beginners. I will try to make complex one later on

2

u/SleekEagle Dec 09 '21

I think it's actually pretty useful to highlight that with a poorly tuned learning rate it's still possible to not converge given a strongly convex function. Definitely a good starting off point for beginners!

3

u/Apathiq Dec 10 '21

Yeah, that's true, but usually when the learning rate is too low, you'll end up in a local minima

1

u/SleekEagle Dec 10 '21

If it's too high your performance will get worse though, and even if it's too low convergence could take a very long time. Always useful to highlight just how important learning rate is - you can have the best model for the job and all the data in the world and get poor results if you don't tune your hyperparameters well!

1

u/naranath Dec 08 '21

RemindMe! 7 days "Gradient Descent"

1

u/RemindMeBot Dec 08 '21

I will be messaging you in 7 days on 2021-12-15 02:11:35 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback