There was a problem compiling the code from your notebook. Details: house_model() missing 1 required positional argument: 'x'

There was a problem compiling the code from your notebook. Details:
house_model() missing 1 required positional argument: ‘x’

this is the issue am face every now and then. please help me out

Hello @Phresh007 ,

Welcome to the community!!

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, under the topic you created.

With regards,
Nilosree Sengupta

Hello, I have the same issue in compiling the block house_model(). It is not taking any input. the block became inactive. When I copied and created a new cell to run, it ran but my grading is showing 0%. Can you please help me out?

Hello @Phresh007 ,

I have checked your notebook.
You need to fix the following : -

  1. Don’t take parameters in the function house model which you have taken x. Basically you got error for this.
  2. Don’t make changes apart from where it’s asked to write the code. Only add code in between this :
### START CODE HERE
...
...
...
###END CODE HERE
  1. So remove whatever you did before and after the block. Like :
    i. removing the code to return y which you wrote before ### START CODE HERE
    ii. You returned a parameterised function house model. Remove parameters.

  2. Don’t write keras directly. Use tf.keras as we have only imported tf. And notebook is set up in such way, even if you import other libraries/packages, it won’t work.

Hop this helps.

With regards,
Nilosree Sengupta

Hello @Abhijit_Debnath ,

Welcome to the community!!

Check if following the suggestions here work for you :

If it doesn’t, 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

Hi,
When I was not using the regularization parameters, then the result is coming as predicted. But as I add the regularization, I am not getting the predicted result. Can you please check my code and tell me what happened ? It is for the assignment C3_W2_Collaborative_RecSys_Assignment

Hello @Abhijit_Debnath ,

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