Machine Learning Ex5.1 – Regularized Linear Regression
Exercise 5.1 Improves the Linear Regression implementation done in Exercise 3 by adding a regularization parameter that reduces the problem of over-fitting.
Over-fitting occurs especially when fitting a high-order polynomial, that we will try to do here.
Data
Here's the points we will make a model from:
# linear regression
mydata = read.csv("... [Read more...]