HELP :) house_model() missing 1 required positional argument: 'y_new'

Hi, although this assignment is correct, it is not accepted. I’ve tried a lot. I wrote my problem in the discussion section. It didn’t help. I have read articles that are the same as my own problem, but I have not been able to solve it. That in the lab. there are no errors in my work. But after registering the assignment, the following error appears. Please, can you help me ?

There was a problem grading your submission. Details:
house_model() missing 1 required positional argument: ‘y_new’

C1W1_Assignment.ipynb (102.0 KB)

Hello Neslihan , Welcome to the deeplearning.ai community !

Pass [7.0] direct to the house_model during the function call , don’t declare it maybe it can solve the problem if didn’t please reply back .

prediction = house_model([7.0])

Hi:)), I did as you said, but it’s still the same error
C1W1_Assignment (1).ipynb (105.8 KB)

@Neslihan_Yetik

I have compared the origin assignment. As I know the signature of house_mode function is not allowed to be changed, it is the part of grader.

My suggestion is to keep using def house_model() and go on with your work :blush:.

Hopefully, it helps :stuck_out_tongue:

1 Like