logo

Eduardo Avelar

C1w1 assignment: housing prices, c1w1 assignment: housing prices #.

https-deeplearning-ai/ tensorflow-1-public /C1/W1/assignment/ C1W1_Assignment.ipynb

Commit f16e408 on May 3, 2022, Compare

base cost 50k

50k each bedroom

1 bedroom 100k

scale 100,000 to 1

week 1 assignment housing prices

Week 1 Assignment: Housing Prices

In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula.

Imagine that house pricing is as easy as:

A house has a base cost of 50k, and every additional bedroom adds a cost of 50k. This will make a 1 bedroom house cost 100k, a 2 bedroom house cost 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.

Now that you have a function that returns a compiled and trained model when invoked, use it to get the model to predict the price of houses:

Now that your model has finished training it is time to test it out! You can do so by running the next cell.

If everything went as expected you should see a prediction value very close to 4. If not, try adjusting your code before submitting the assignment. Notice that you can play around with the value of new_y to get different predictions. In general you should see that the network was able to learn the linear relationship between x and y , so if you use a value of 8.0 you should get a prediction close to 4.5 and so on.

Congratulations on finishing this week's assignment!

You have successfully coded a neural network that learned the linear relationship between two variables. Nice job!

Keep it up!

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications

Mirazul62/Programming-Assignment-Exercise-1-Housing-Prices---coursera-tensorflow

Folders and files.

Assignment Housing prices 'Keras' not defined

Hi, I have implemented the house_model function as shown : NameError: ‘keras’ not defined, I am pretty sure it’s imported , I run all the cells, I don’t have any problem for any cell of code and I got a correct prediction (4,), how can I fix the problem. I tried many times, I cleared the data I resubmitted many time, I rerun the cells too

I just ran the lab with the following code and got full score:

Please check your code and if you don’t find anything wrong with it, click my name and message your notebook as an attachment.

[snippet removed by mentor]

[summary by mentor] use tf.keras instead of keras when not importing keras directly

Thank you, I have already try an other solution and it worked, I added Import keras into the function

COMMENTS

  1. Week 1 Assignment: Housing Prices

    Week 1 Assignment: Housing Prices. In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. Imagine that house pricing is as easy as: A house has a base cost of 50k, and every additional bedroom adds a cost of 50k.

  2. Week 1 Assignment: Housing Prices

    Week 1 Assignment: Housing Prices. This repository contains the Week 1 assignment for the "Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning" course on Coursera. The goal of this project is to build a neural network that predicts the price of a house based on a simple formula.

  3. Week 1 Assignment: Housing Prices

    Saved searches Use saved searches to filter your results more quickly

  4. C1W1 Assignment: Housing Prices

    C1W1 Assignment: Housing Prices C1W2: Implementing Callbacks in TensorFlow using the MNIST Dataset C1W3: Improve MNIST with Convolutions C1W4: Handling Complex Images - Happy or Sad Dataset C2W1: Using CNN's with the Cats vs Dogs Dataset C2W2: Tackle Overfitting with Data Augmentation ...

  5. Week 1 Assignment: Housing Prices

    Week 1 Assignment: Housing Prices. In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. Imagine that house pricing is as easy ...

  6. CoCalc -- C1W1_Assignment.ipynb

    Week 1 Assignment: Housing Prices. In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. Imagine that house pricing is as easy as: A house has a base cost of 50k, and every additional bedroom adds a cost of 50k. This will make a 1 bedroom house cost 100k, a 2 bedroom house cost ...

  7. Exercise-1-housing-prices (Coursera )(TensorFlow in practice ...

    TensorFlow Lite provides all the tools you need to convert and run TensorFlow models on mobile, embedded, and IoT devices. The following…

  8. Exercise 1

    Saved searches Use saved searches to filter your results more quickly

  9. Housing-Prices-prediction/C1W1_Assignment.py at main

    # # Week 1 Assignment: Housing Prices # # In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. # # Imagine that house pricing is as easy as: # # A house has a base cost of 50k, and every additional bedroom adds a cost of 50k. This will make a 1 bedroom house cost 100k, a 2 ...

  10. Introduction to TensorFlow Coursera -week-1 Housing prices assignment

    This video consist of Coursera week-1 assignment (Housing Prices)#tensorflow #housingprices #assignment -1#coursera #viral #viralvideos #diy #shorts #video #...

  11. C1W1_Housing prices assignment

    The below screenshot from the assignment will explain for the choice of ys variable being modified Screenshot 1945-06-05 at 4.09.47 PM 1 1280×449 56 KB Regards

  12. Introduction to TensorFlow for Artificial Intelligence, Machine

    Lecture Notes Week 1 • 5 minutes; Assignment Troubleshooting Tips • 5 minutes (Optional) Downloading your Notebook and Refreshing your Workspace • 5 minutes; Week 1 Resources • 10 minutes; 1 quiz • Total 30 minutes. Week 1 Quiz • 30 minutes; 1 programming assignment • Total 60 minutes. Housing Prices ...

  13. Predicting House Prices with Regression using TensorFlow

    In this 2-hour long project-based course, you will learn the basics of using Keras with TensorFlow as its backend and you will learn to use it to solve a basic regression problem. By the end of this project, you will have created, trained, and evaluated a neural network model that, after the training, will be able to predict house prices with a ...

  14. Exercise_1_House_Prices_Question.ipynb

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

  15. C1W1 Assignment

    October 1, 2023. 1 Week 1 Assignment: Housing Prices. In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. Imagine that house pricing is as easy as: A house has a base cost of 50k, and every additional bedroom adds a cost of 50k. This will make a 1 bedroom house cost 100k, a 2 ...

  16. Lab1, week 1 Assignment name Housing Prices, My lab is working

    Based on your link provided assignment name is housing prices from TensorFlow Developer Professional certificate course 1 week 1. I am changing this time your course specification for header, kindly next time follow as mentioned for better responses. Can you show what was training output without sharing codes.

  17. GitHub

    it's my personal work for Week 1Assignment Housing Prices: ( from coursera course :Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning)..In this exercise Itry to build a neural network that predicts the price of a house according to a simple formula. Imagine that house pricing is as easy as: A house has a base cost of 50k, and every additional bedroom ...

  18. Week 1 Assignment: Housing Prices

    Week 1 Assignment: Housing Prices. Course Q&A. TensorFlow Developer Professional. Introduction to TF for Artificial Intelligence ... week-1. huzefa_sadikot February 9, 2023, 2:07am 1. Hi, For the week 1 assignments the keras library from tensorflow is not imported in the notebook. Also to prevent errors in autograding we are not allowed to edit ...

  19. Week 1 >>> Programming Assignment: Housing Prices

    Once you click my name, an option to message will appear. Use the feature to send me your notebook as an attachment. Mentors don't have access to your lab.

  20. Introduction-to-TensorFlow-for-Artificial-Intelligence-Machine ...

    Saved searches Use saved searches to filter your results more quickly

  21. Mirazul62/Programming-Assignment-Exercise-1-Housing-Prices ...

    Packages. Contribute to Mirazul62/Programming-Assignment-Exercise-1-Housing-Prices---coursera-tensorflow development by creating an account on GitHub.

  22. Assignment Housing prices 'Keras' not defined

    Assignment Housing prices 'Keras' not defined. Course Q&A. TensorFlow Developer Professional. Introduction to TF for Artificial Intelligence ... week-1. SAMIA_BOUSSAID March 28, 2023, 3:02pm 1. Hi, I have implemented the house_model function as shown : NameError: 'keras' not defined, I am pretty sure it's imported , I run all the cells, I ...