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 7 Exercise 2 #82

Open
SamBurkart opened this issue May 18, 2017 · 2 comments
Open

Chapter 7 Exercise 2 #82

SamBurkart opened this issue May 18, 2017 · 2 comments

Comments

@SamBurkart
Copy link

I believe the solutions are all shifted 1 degree of freedom.
For a) the function should be 0 everywhere, otherwise the regularization term is infinity, for b) the first dericative has to be 0 --> function needs to be constant, etc.

@Jeffalltogether
Copy link

I agree with @SamBurkart.

To add an additional piece of evidence for this answer: the answer to part c) is given in the text on page 278, "When λ → ∞, g will be perfectly smooth—it will just be a straight line that passes as closely as possible to the training points. In fact, in this case, g will be the linear least squares line, since the loss function in (7.11) amounts to minimizing the residual sum of squares."

@jdonland
Copy link

Another error: for e), when λ = 0 and the penalty term becomes irrelevant, g will be a function which completely interpolates the training data, since the minimization is over all curves. In particular, it won't be the linear least squares line as the current solution claims.

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