Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有个公式中的值希望您能帮我解答一下 #745

Open
KnightLancelot opened this issue Aug 12, 2022 · 2 comments
Open

有个公式中的值希望您能帮我解答一下 #745

KnightLancelot opened this issue Aug 12, 2022 · 2 comments

Comments

@KnightLancelot
Copy link
Contributor

不好意思,我在阅读“04.1-最小二乘法.md”在公式3(即:“如何学得 w 和 b 呢?均方差(MSE - mean squared error)是回归任务中常用的手段:”之后的公式)中看到了“1/2m”,我想请教您一下,这里的“2”是从哪儿来的呀?
期待您的解答。谢谢。

@berndcode
Copy link

公式4求偏导会得到2,和这个1/2抵消了,简化计算

@Lrcx
Copy link

Lrcx commented Nov 3, 2022

加2和不加2本质上都没有任何区别,不过是加了2之后计算出来的结果比不加2小了两倍,但是小就都小,大小关系是没有变的,加了2只不过是与求偏导的时候得到的2抵消,事实上不加2,或者设置成3、5都行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants