Question: In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. So, imagine if


In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. So, imagine if house pricing was as easy as a house costs 50k+50k per bedroom, so that a 1 bedroom house costs 100k, a 2 bedroom house costs 150k etc. How would you create a neural network that learns this relationship so that it would predict a 7 bedroom house as costing close to 400k etc. Hint: Your network might work better if you scale the house price down. You don't have to give the answer 400... it might be better to create something that predicts the number 4 , and then your answer is in the 'hundreds of thousands' etc. Modify the code below to fit your linear regression model. Then nswer the following questions: 1. Is the cost of 7 bedroom house close to 400k ? 2. What is the linear model of this problem? In other word, what are the values of a and b in the linear equation y=a+bx at the end of training? 3, Is the result more accurate when you increase the epochs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
