Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started