Stochastic Gradient Descent Algorithm With Python and NumPy

By realpython - 2021-02-02

Description

In this tutorial, you'll learn what the stochastic gradient descent algorithm is, how it works, and how to implement it with Python and NumPy.

Summary

  • Stochastic gradient descent is an optimization algorithm often used in machine learning applications to find the model parameters that correspond to the best fit between predicted and actual outputs.
  • The learning rate determines how large the update or moving step is.
  • A lower learning rate prevents the vector from making large jumps, and in this case, the vector remains closer to the global optimum.
  • The best regression line is đť‘“(đť‘Ą) = 5.63 + 0.54đť‘Ą.
  • As in the previous examples, this result heavily depends on the learning rate.

 

Topics

  1. Machine_Learning (0.54)
  2. Backend (0.21)
  3. NLP (0.12)

Similar Articles

Python enumerate(): Simplify Looping With Counters

By realpython - 2020-12-15

Once you learn about for loops in Python, you know that using an index to access items in a sequence isn't very Pythonic. So what do you do when you need that index value? In this tutorial, you'll lea ...

Machine Learning Optimization Methods and Techniques

By Medium - 2020-12-07

The principal goal of machine learning is to create a model that performs well and gives accurate predictions in a particular set of cases. In order to achieve that, we need machine learning…