Git Product home page Git Product logo

statistical_learning_methods_code's Introduction

笔记

先从L2范数说起,不知道怎么说为什么是用L2范数,但是能解释是用了L2范数能做到什么
第一章中有提到一条公式,这条公式用来表示模型的loss和复杂度。
回顾一下第一章的内容

经验风险最小化: 用来计算模型的损失,一般就是各种loss function了
结构风险最小化: 用到计算模型的复杂度,我就知道有个L2范数。其他希望有大佬可以补充下
然后 2个最小化 组合在一起就是那条公式:
Alt text
左侧经验风险,右侧结构风险。

接下来说说右侧结构风险 常用的 L2范数是怎么 做结构风险最小的function。
L2范数: 是这样子的
Alt text
接着使用这条公式,而衡量模型复杂度的时候一般是用模型的参数的大小来衡量(参数逼近0,也就相当于减少参数了) 故范数公式中的X我们就用模型的参数来作为输入 Alt text
故L2也就做到了减少模型复杂度的作用
以上观点是我个人看法而已 不一定正确,有大佬明白的话也可以和我说一说。

我还想知道模型复杂度这样一直在不断减少,就不能增加吗?

接着书中感知器L2范数的作用。
用来计算输入空间到超平面的距离
点到线的公式 Alt text
分母这个也就是L2范数。 故书中公式
Alt text 接着乘y来保证距离>0。得到损失函数 Alt text

然后L2范数那块可以被省略?why?明明不是常数呀,梯度下降过程会被影响到啊

接着算法收敛性。

statistical_learning_methods_code's People

Contributors

bringtree avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.