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

线性回归的梯度下降算法bug很严重 #1

Open
btobab opened this issue Aug 20, 2021 · 6 comments
Open

线性回归的梯度下降算法bug很严重 #1

btobab opened this issue Aug 20, 2021 · 6 comments

Comments

@btobab
Copy link

btobab commented Aug 20, 2021

  1. dw的方向有问题
  2. 精度很低
@zhulei227
Copy link
Owner

你好,多谢第一个提问;
1.dw的方向是什么问题?【那结果为啥又会收敛呢?】
2.如果确认不了【1】的问题,【精度很低】的依据又是什么?

1 similar comment
@zhulei227
Copy link
Owner

你好,多谢第一个提问;
1.dw的方向是什么问题?【那结果为啥又会收敛呢?】
2.如果确认不了【1】的问题,【精度很低】的依据又是什么?

@btobab
Copy link
Author

btobab commented Aug 27, 2021

很抱歉,是我的问题。我没有注意到您的dw的公式中将负号提出去了,导致我的梯度正好是相反的。十分抱歉~~

@btobab
Copy link
Author

btobab commented Aug 27, 2021

另外能再请教您一个问题吗?
在线性回归任务中,我在数据预处理时加了归一化,那么梯度下降算法求解出的w是否需要逆归一化?以及如何逆归一化?

@privateos
Copy link

逻辑回归梯度下降法有错误。

@privateos
Copy link

看错了,没问题😁

zhulei227 pushed a commit that referenced this issue May 2, 2023
zhulei227 added a commit that referenced this issue May 2, 2023
Merge pull request #1 from zhulei227/master
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