CoCalc’s goal is to provide the best real-time collaborative environment for Jupyter Notebooks , LaTeX documents , and SageMath , scalable from individual use to large groups and classes.
Week 1 assignment: housing prices.
In this exercise you'll 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.
TIPS FOR SUCCESSFUL GRADING OF YOUR ASSIGNMENT:
All cells are frozen except for the ones where you need to submit your solutions or when explicitly mentioned you can interact with it.
You can add new cells to experiment but these will be omitted by the grader, so don't rely on newly created cells to host your solution code, use the provided places for this.
You can add the comment # grade-up-to-here in any graded cell to signal the grader that it must only evaluate up to that point. This is helpful if you want to check if you are on the right track even if you are not done with the whole assignment. Be sure to remember to delete the comment afterwards!
Avoid using global variables unless you absolutely have to. The grader tests your code in an isolated environment without running all cells from the top. As a result, global variables may be unavailable when scoring your submission. Global variables that are meant to be used will be defined in UPPERCASE.
To submit your notebook, save it and then click on the blue submit button at the beginning of the page.
Exercise 1: create_training_data
Your first task is to create the data that your model will be trained on.
To generate the training data (aka the features and the targets) you will use numpy to create a one-dimensional tensor with the number of bedrooms and another one-dimensional tensor with the corresponding price in hundreds of thousands of dollars. In this case the number of bedrooms will be the features, which the network will try to map to the target of the prices. These tensors (or numpy arrays) should have six elements which will be the values (number of bedrooms and price in hundreds of thousands) for houses with 1 up to 6 bedrooms .
Even if the number of bedrooms can be thought of as an integer, define these values as floats to account for scenarios such as half a bedroom.
The price should also be a float since currency is tipically defined as such.
Expected Output:
Exercise 2: define_and_compile_model
Your second task is to define the architecture of your model and compile it.
For this particular task your model should be made up of a single dense layer with 1 unit and when compiling it, use:
Stochastic Gradient Descent as the optimizer
Mean Squared Error as the loss function
Remember that the training data is one-dimensional, so use this information when defining the shape of the Input .
In case you need some extra help, be sure to check the docs for tf.keras.Input and tf.keras.layers.Dense
Exercise 3: train_model
With your model and the training data ready now it is time to train your model. You will feed this training data into the model so it can learn the relationship between the number of bedrooms and the price of the houses. For this you will use Tensorflow model's fit method.
After training you will test your network with a 7-bedroom house to see if it is able to accurately predict its price.
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:
Values of loss function don't need to be exact to these values
Now that your model has finished training it is time to test it out! You can do so by running the next cell.
The price doesn't need to exactly match this one but it should be close to 4.
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_n_bedrooms to get different predictions. In general you should see that the network was able to learn the linear relationship between n_bedrooms and price_in_hundreds_of_thousands , 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!
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
Task 3: Housing Prices
In addition to providing info on tackling debt, the company wants to help customers navigate the housing market. The app company wants to provide more information on housing prices to help their customers decide when is the best time to buy. In order to do so, they need you to run an EDA and clean the data for this dataset .
Create a new workbook to store this dataset and select THREE out of the seven provided CSVs that you find the most interesting. You only have to perform EDA and clean the data for your chosen factors. Add each factor to a separate spreadsheet in your workbook. As you work, make sure to answer the questions in the final report document for each of your three chosen factors.
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 You must be signed in to change notification settings
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 …
MortadhaMannai/Housing-Prices-prediction
Folders and files.
Name | Name | |||
---|---|---|---|---|
1 Commit | ||||
- Python 100.0%
IMAGES
VIDEO
COMMENTS
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.
Week 1 Assignment: Housing Prices. In this exercise you'll 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 ...
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.
Week 1 Assignment: Housing Prices. In this exercise you'll 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 ...
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 ...
Repo for code written in this Coursera course. Contribute to Leijtenss/Coursera-Tensorflow-for-AI-and-ML development by creating an account on GitHub.
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 ...
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 ...
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 ...
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 5 0 k, and every additional bedroom adds a cost of 5 0 k. This will make a 1 bedroom house cost 1 0 0 k, a 2 ...
TensorFlow Lite provides all the tools you need to convert and run TensorFlow models on mobile, embedded, and IoT devices. The following…
This video consist of Coursera week-1 assignment (Housing Prices)#tensorflow #housingprices #assignment -1#coursera #viral #viralvideos #diy #shorts #video #...
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 ...
Week 1 - A New Programming Paradigm. Programming Assignment: Exercise 1 (Housing Prices) Week 2 - Introduction to Computer Vision. Programming Assignment: Exercise 2 (Handwriting Recognition) Week 3 - Enchancing Vision with Convolutional Neural Networks. Programming Assignment: Exercise 3 (Improve MNIST with convolutions) Week 4 - Using Real ...
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 ...
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 ...
4 videos 7 readings 1 assignment 1 programming assignment 2 app items 1 ungraded lab 1 plugin. ... Housing Prices ... Welcome to week 2 of the course! In week 1 you learned all about how Machine Learning and Deep Learning is a new programming paradigm. This week you're going to take that to the next level by beginning to solve problems of ...
Explore and run machine learning code with Kaggle Notebooks | Using data from House Prices - Advanced Regression Techniques Kaggle uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.
Task 3: Data Manipulation. Task 4: Data Visualization. Task 5: Summarize and Bonus Mission. A4: The Final Project. Checkpoint 1: Choose Your Data. Checkpoint 2: EDA. Checkpoint 3: Cleaning Data. Checkpoint 4: Tableau Story. In addition to providing info on tackling debt, the company wants to help customers navigate the housing market.
Saved searches Use saved searches to filter your results more quickly
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 ...
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 ...