House_model() missing 1 required positional argument: 'y_new' error

Hi,

I really tried different things but couldn’t find the solution. And i seen similar issues here but also none of them worked for me.

I appreciate any kind of help.

Did you modify the first line of the house_model() function definition?
It should look like this:

1 Like

I didn’t modify anything out of the

start code here

end code here.

However, the house_model() function doesn’t look like the picture you have posted and i can’t modify it since it’s not within ### start code here

end code here.

Can i send you my notebook?

Probably better to wait for a mentor for that course to reply here.

Hello @Akram.al-saffah ,

I’m a mentor of TF1.

Send me your notebook via dm such that I can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here.

With regards,
Nilosree Sengupta

I have invited you both to the PM discussion where @Akram.al-saffah sent me his notebook.

Hi,
I have sebt you my notebook.

Hello @TMosh and @Akram.al-saffah ,

Thank you both for sharing the file. Just now checked it.

  1. Your issue is what @TMosh has already mentioned.

It should be : def house_model() . Not def house_model(y_new).

  1. Then you will get another error of keras is not defined. For that check this : C1W1 Lesson House Prices - import is missing keras? - #3 by nilosreesengupta

  2. Next I also see you have added 1 cell after this for the model training part, passing a value to the model as well as a print statement which is not needed. Remove this cell.

Neither change anything else in the codes nor create any cell. You have both the required model training and testing cells below.

With regards,
Nilosree Sengupta

In continuation to the above, I see your notebook last cell has another error:
NameError: name ‘model’ is not defined

As you have used variable prediction to store the output of the function. The model training part is already pre-coded that uses model to store it.

The above mentioned 3rd point will fix it.

With regards,
Nilosree Sengupta

Hi,
Thank you very much for your reply.

I didn’t add any cell and i didn’t add anything out of

start code here

end code here

However, i think the assignment and the notebook already updated. I tried to solve this assignment on 25.06.2023. It seens that there is update after this date.
Is there any way to get the original notebook without what i have done till now?
I want to start from the beggining.
Thank you for in advance.

Hello @Akram.al-saffah ,

Understand the above 3 points and you can manually make the following 3 changes above. It’s very simple. All will get fixed.

If you want the updated version,

  1. Go to help.
  2. Then click ‘Get Latest version’
  3. Then make sure your code aligns with the above 3 points.

With regards,
Nilosree Sengupta