L2 regularization prevents the accuracy change before and after fitting, and the weight initialization

Source: Internet
Author: User
Recently in the look at Depth model processing NLP text classification. Generally in the writing model, the L2 regularization coefficient is set to 0, not to run regularization. There is also a small trick, is the initialization of some weights, such as the weight of each layer of CNN, as well as the weight of the full connection layer and so on.
In general, these weights may be randomly initialized and conform to a normal distribution. Although the results have little impact, it will certainly affect the convergence and accuracy of the model.
First, two pictures.






The first picture is that I have no home plus the accuracy diagram that prevents overfitting and randomly initializes the weights matrix. The second chapter is that I added the L2 regularization and some method to initialize the weight after the results, found that the model is relatively stable, and there has not been a fitting phenomenon, that is, as the first picture, to a certain stage of the accuracy of the rapid decline.

How home plus will not say, how to initialize the weight, you can see this link. Https://zhuanlan.zhihu.com/p/21560667?refer=intelligentunit

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.