Coursera Machine Learning Study notes (10)

Source: Internet
Author: User

-Learning Rate

In the gradient descent algorithm, the number of iterations required for the algorithm convergence varies according to the model. Since we cannot predict in advance, we can plot the corresponding graphs of iteration times and cost functions to observe when the algorithm tends to converge.

Of course, there are some ways to automatically detect convergence, for example, we compare the change value of a cost function with a predetermined threshold, such as 0.001, to determine convergence. But in general, it is more intuitive to observe the above chart.

Each iteration of the gradient descent algorithm is affected by the learning rate, and if the learning rate is too small, the number of iterations required to converge is very high, and if the learning rate is too large, each iteration may not reduce the cost function and may cross the local minimum to cause an inability to converge.

As a result, the learning rate that we are trying to get is usually: ..., 0.001,0.003,0.01,0.03,0.1,0.3,1, ...



Coursera Machine Learning Study notes (10)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.