C1_W3_Assignment # UNQ_C1: error - wrong shape wrong output

Hi @Kietsakul

Welcome to the community. Note sure if this was answered earlier.

You might have missed this.

372670857fff9de1336abe9dba5801b2309bbf39

You may not have included number of classes.

Cheers,
Jaidev

Thanks, actually I did:
y = to_categorical(y, num_classes=num_classes)
Nonetheless, it just passed the tests last night. I still can’t figure out what happened earlier. HaHa.

So you are one-hot encoding there.

But, glad it worked out. Thanks for letting us know @SSC13

Best.

– Jaidev

I have same problem/
Lab id is axtkpbbuskay
Test one_hot_encodind see to me all correct.
Can you help me

Hi @Mikolay_Kostiuk,

You are not correctly changing the dimension of x and y.

Best,
Mubsi

Many thanks

Hello,
I’m getting the error:

Error: Wrong output. for variable in position 0.
Error: Wrong output. for variable in position 1.
...
 2  Tests passed
 1  Tests failed

I’m setting the number of classes correctly (I believe), and I can’t think of how the offsets for start_x etc. should work other than how I have them. My lab id is njuhsuivlxsq , any help is greatly appreciated.

Thanks,
Max

try to create a new topic rather posting older threads, is this your complete error? please make sure not to post any grade function codes

Hi.

Having the same issue. I think the one hot coding is ok, but having wrong answer.

My notebook code is fahtlhoexrdm.

Thanks in advance

hi @Jfgirald

This isn’t the way it works. mentors don’t have access to your notebook or id. You are always suppose to create a new topic with brief explanation and screenshot(s) of error or mismatch output without posting any grade function codes is the first step to get help. have similar error doesn’t always mean same issues with older Post creator.

So kindly do the needful, so mentors can further guide you.(Post screenshot of your error, exercise you encountered issue.