Practice Lab: Neural Networks for Multiclass classification C2_W2_Ex2 Grading error

Hello guys,
I am facing a big problem with my W2 assignment specifically ex2.
Every time I try to submit my assignment I have this error with the grader which i can’t understand why it would want the sequential model to be of class type.

Code Cell UNQ_C1: Function ‘my_softmax’ is correct.
Unexpected error occurred during variable check. We expected variable model to be of type <class ‘list’>. Please check that this variable is initialized and is of the right type.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

this is my model implementation:
Code deleted by Mentor
and this is the result after training:

thanks, in advance.

it was solved and in case you are wondering how I don’t really have an idea

Hey @Ahmed_Ragab_saad,

I have just deleted the code as it’s against our community guidelines to post graded codes. You can send your notebook to any mentor of your specialization via DM to check it for you.
Regards,
Jamal

I am sorry I wasn’t aware of that.

1 Like

Hello @Ahmed_Ragab_saad,

It’s okay no problem at all !! By the way did you try to refresh your workspace and re-run your code again?

Yeah, I did it by chance actually and it worked.
thanks for your input.

1 Like

Please only send your code to a mentor if you are invited to by that mentor. They’ll contact you via a private message.

Cold-contacting the mentors is generally not a good practice.

2 Likes