Question: how to i send/ include my .ipynb file ? In this homework, you will use linear regression to predict house price in Boston suburbs.

\\ how to i send/ include my .ipynb file ? In this\\

how to i send/ include my .ipynb file ?

In this homework, you will use linear regression to predict house price in Boston suburbs. An iPython notebook is provided ("Hw1 - Linear Regression.ipynb"), where some of the early steps that prepare the training data and testing data have been implemented for you. Please follow the instructions to implement and run each step. The specific tasks are Use LinearRegression() in scikit-learn library Implement analytical solution (based on normal equation) to perform linear regression Implement numerical solution (based on gradient descent) to perform linear regression In particular, in your gradient descent implantation, please tune the parameters to gel close to the accuracy of the linear regression model from scikit-learn library. In each task, you also need to Show all weights (intercept and coefficients) Show the resulting error l(w) = 1/2N Sigma^N _i = 1 [t^(i) - y(x^(i))]^2 on training data and lest data, respectively. Use matplotlib to plot your predictions and real prices on the testing data. In this homework, you will use linear regression to predict house price in Boston suburbs. An iPython notebook is provided ("Hw1 - Linear Regression.ipynb"), where some of the early steps that prepare the training data and testing data have been implemented for you. Please follow the instructions to implement and run each step. The specific tasks are Use LinearRegression() in scikit-learn library Implement analytical solution (based on normal equation) to perform linear regression Implement numerical solution (based on gradient descent) to perform linear regression In particular, in your gradient descent implantation, please tune the parameters to gel close to the accuracy of the linear regression model from scikit-learn library. In each task, you also need to Show all weights (intercept and coefficients) Show the resulting error l(w) = 1/2N Sigma^N _i = 1 [t^(i) - y(x^(i))]^2 on training data and lest data, respectively. Use matplotlib to plot your predictions and real prices on the testing data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!