Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed\\

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

In what ways do lenders and investors lend legitimacy to a firm?

Answered: 1 week ago

Question

1. How do most insects respire ?

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago