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

SVM--参数b 更新问题 #7

Open
a411919924 opened this issue Aug 15, 2018 · 0 comments
Open

SVM--参数b 更新问题 #7

a411919924 opened this issue Aug 15, 2018 · 0 comments

Comments

@a411919924
Copy link

你好,
有个小问题想请教下:

在李航书中130页,alpha1_new 和 alpha2_new同时在范围(0, C) 时,b_new = b1_new = b2_new, 否则 b_new = (b1_new + b2_new) / 2。

在你的svm.py 的175-180行,alpha1_new 和 alpha2_new 没有同时判断,alpha1_new 满足条件但alpha2_new不满足条件时,b_new发生错误更新。

还是个新手,不知道判断得是否正确。

感谢!

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

1 participant