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

Chapter 5, Logistic regression may have error #18

Open
OnlyBelter opened this issue Apr 8, 2018 · 1 comment
Open

Chapter 5, Logistic regression may have error #18

OnlyBelter opened this issue Apr 8, 2018 · 1 comment

Comments

@OnlyBelter
Copy link

In your source code of Chapter 5, Line26, the weight's dimension is n + 1. But other places, like Line58 and Line67, only have n. I think you may not contain intercept term of this model.

@Spico197
Copy link

weights = np.ones((3, 1))

and I get

array([[1.],
       [1.],
       [1.]])

where $weight \in \mathds{R}^{3 \times 1}$, so I guess you have a misunderstanding?

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

2 participants