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

fix: 경사 하강법 실습 오류 수정 (코드 4-1, p.79-80) #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sogoagain
Copy link

@sogoagain sogoagain commented Mar 8, 2020

4장 '오차 수정하기: 경사 하강법' 실습 코드에 오류가 있어 수정합니다.
책에 나오는 코드는 이상이 없으나, github에 제공되는 코드에는 이상이 있습니다.

경사 하강법을 계산하는 반복문 로직에서 학습률을 곱해 기존의 a, b 값을 업데이트하는데 사용된 변수명이 올바르지 않습니다. 또한 y_pred로 작성되어야 하는 변수명이 y_hat으로 작성되어 있습니다.

resolved: #4

4장 '오차 수정하기: 경사 하강법' 실습 코드에 오류가 있어 수정합니다.
책에 나오는 코드는 이상이 없으나, github에 제공되는 코드에는 이상이 있습니다.

경사 하강법을 계산하는 반복문 로직에서 학습률을 곱해 기존의 a, b 값을 업데이트하는데 사용된 변수명이 올바르지 않습니다.
4장 '오차 수정하기: 경사 하강법' 실습 코드에 오류가 있어 수정합니다.
책에 나오는 코드는 이상이 없으나, github에 제공되는 코드에는 이상이 있습니다.

y_pred로 작성되어야 하는 변수명이 y_hat으로 작성되었습니다.
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

Successfully merging this pull request may close these issues.

4장 경사 하강법 실습(코드 4-1) 예제 코드가 책과 다릅니다.
1 participant