Welcome to the discourse! Glad to have you posting!
I would pay close attention to this hint, and give it another go!
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.
Hi…
i have tried to make the code, the end of the result is approximately almost 400. But the problem is when i want to submit, i still got 0 for my task. What happened? would you like to help me, please?
i have been trying for a lot of time, still didn’t pass
Hi @Rifah_Maulidya, thanks for reaching out.
Please train your model from a house with one bedroom up to 6 bedrooms only, don’t include 7 bedrooms in the training.
For the prices do as this hint pointed out:
Blockquote
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.
Instead of 100.0 try 1.0 etc…
Keep us posted on the results
Oh, that’s very simple, the graders were updated recently. Just make sure you have the latest version of the notebook and the problem will be solved.
Please follow these steps, then try your code again.
Open the notebook from the classroom.
After the notebook opens up, click File → Open
When your workspace opens, tick the check box before your notebook file. After it is selected, press Shutdown. The icon beside the filename should turn from green to gray.
Tick the checkbox again and this time choose Rename and enter any filename other than the original. For example, C4W1_Assignment.ipynb (original) → C4W1_Assignment_v2.ipynb
(Optional) Tick the checkbox of any other file that you want to get a fresh copy of (e.g. dataset files that you might have manipulated irreversibly). Then click Delete . You can also opt to Rename or Download each file individually in case you want to keep them before deleting.
Click on the Help button on the top right of the page.
Click the Get latest version button.
Click the Update Lab button. The page will refresh and you should now see the latest version of the notebook.
If the error still remains, just tell me. I’ll assist you until you get 100/100
@Rifah_Maulidya, I received your code and it looks perfect, the problem is in the notebook itself.
I want you to:
1-Click File → Open
2-check box before your notebook file. After it is selected, delete it.
3-Upload this notebook instead and fill the graded function with yours.
PS: make sure the name is C1W1_Assignment.ipynb and nothing else, otherwise the submission will fail.
Hello @ZESHAN_MUMTAZ, welcome to the community.
ys should be the price of the house based on the number of bedrooms.
Blockquote
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.
Blockquote
Hint: Your network might work better if you scale the house price down.
For a house with one bedroom, the price is 1.0, a 2 bedroom house is 1.5, etc.