AI for Medical Diagnosis C1_W3 Assignment Assertion Error for exercise 5

Hi,

I’m currently getting an Assertion Error for exercise 5 in the programming assignment C1_W3 no matter what I try, so I’m a bit confused and was hoping you could help me understand what’s going wrong.

Every other exercise in the notebook runs correctly and gives the expected output, so I thought I could still go ahead and submit since we only need 5/6 exercises to pass. However, after submitting, I received 0% for every submission, with the autograder saying I got 0/6, which I didn’t expect.

I’d really appreciate it if you could help me resolve this issue. I’m also happy to DM you the entire code privately if that would be easier.

Here is the error shown when I run the cell:

image

Thank you for your time.

Kind regards,
Minupama

@Minupama_h

Check this post response to cross check with your codes, if you are implementing the same way

let me know if you still have doubt, Also try to post screenshot of complete error, that helps alot at understanding which line of code might need attention.

Regards

DP

Hi!
I managed to fix the code by editing the second cell. Thank you so much for your guidance.

Kind regards,

Minupama

1 Like

Try to close a topic mentioning where your code were incorrect and how you correct it, so future learner when visit your topic, might find helpful.

:smiley: happy that you were able to debug your codes.

Regards

DP