Daily Dose of Data Science

Share this post

Does Every ML Algorithm Rely on Gradient Descent?

www.blog.dailydoseofds.com

Discover more from Daily Dose of Data Science

High-quality insights on Data Science and Python, along with best practices — shared daily. Get a 550+ Page Data Science PDF Guide and 450+ Practice Questions Notebook, FREE.
Over 36,000 subscribers
Continue reading
Sign in

Does Every ML Algorithm Rely on Gradient Descent?

If not, which ones don't?

Avi Chawla
Jun 5, 2023
9
Share this post

Does Every ML Algorithm Rely on Gradient Descent?

www.blog.dailydoseofds.com
1
Share

Gradient descent is the most common optimization technique in ML. Essentially, the core idea is to iteratively update the model's parameters by calculating the gradients of the cost function with respect to those parameters.

Why gradient descent is a critical technique, it is important to know that not all algorithms rely on gradient descent.

The visual above depicts this.

Algorithms that rely on gradient descent:

  • Linear Regression

  • Logistic Regression

  • Ridge Regression

  • Lasso Regression

  • Neural Networks (ANNs, RNNs, CNNs, LSTMs, etc.)

  • Support Vector Machines

  • Multilayer Perceptrons

Algorithms that DON’T rely on gradient descent:

  • Naive Bayes

  • kNN

  • Decision Tree

  • Random Forest

  • Principal Component Analysis

  • Linear Discriminant Analysis

  • KMeans Clustering

  • Gradient Boosting

👉 Over to you: Which algorithms have I missed?

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.


👉 Read what others are saying about this post on LinkedIn and Twitter.

👉 Tell the world what makes this newsletter special for you by leaving a review here :)

Review Daily Dose of Data Science

👉 If you liked this post, don’t forget to leave a like ❤️. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights. The button is located towards the bottom of this email.

👉 If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science


Find the code for my tips here: GitHub.

I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn and Twitter.

9
Share this post

Does Every ML Algorithm Rely on Gradient Descent?

www.blog.dailydoseofds.com
1
Share
Previous
Next
1 Comment
Share this discussion

Does Every ML Algorithm Rely on Gradient Descent?

www.blog.dailydoseofds.com
Kawtar
Jun 5

Thank you for sharing !!

Expand full comment
Reply
Share
Top
New
Community

No posts

Ready for more?

© 2023 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing