C2W4 Assignment: failed in create model

Greetings,

i have submitted my code, and this is the grader output
Failed test case: There was an error trying to fit the model.
Expected:
No exceptions,
but got:
strArguments target and output must have the same shape. Received: target.shape=(None, 24), output.shape=(None, 2).

and this is my code

i got confused what is wrong, i’m sure from the above screenshot i got the expected shape.

any idea?

1 Like

can you test result output screenshot?

here you go

1 Like

Dear @Aysha654,

Welcome to the Community!

Please send me the code via direct message.
You can do this by clicking on my name and then click Message.

Kindly note that sharing code in the community is against the code of conduct, so please do not post it here.


Keep Learning AI with DeepLearning.AI - Girijesh

@Aysha654

if your issue is resolved then let me know or send only the screenshot of the grade function codes by personal DM by clicking on my name and then select message.

Also if you are confident that your code is correct, then clear out the kernel output, reconnect and re-run the cells from beginning till end one by one, and then check if you still have the issue.