Machine Learning Ex5.1 – Regularized Linear Regression

March 18, 2011 | al3xandr3

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...]

Machine Learning Ex3 – multivariate linear regression

March 8, 2011 | al3xandr3

Exercise 3 is about multivariate linear regression. First part is about finding a good learning rate (alpha) and 2nd part is about implementing linear regression using normal equations instead of the gradient descent algorithm. Data As usual hosted in google docs: mydata = read.csv(" [Read more...]

Machine Learning Ex2 – linear regression

February 24, 2011 | al3xandr3

Andrew Ng has posted introductory machine learning lessons on the OpenClassRoom site. I've watched the first set and will here solve Exercise 2. The exercise is to build a linear regression implementation, I'll use R. The point of linear regression is to come up with a mathematical function(model) that represents ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)