AI for Medicine, C2_W2 Assignment Grade error

Hi everyone,
I’ve been struggling with my assignment of week 2 in AI for medical prognosis course because of grading error. The outputs of all my answers have met the expectations & I modified them several times. I don’t get any error in the notebook itself. After I submit the assignment, it’ successfully submitted. At the end I get grading error with 0/6 grade. The message I get is: Please try optimizing the efficiency of your solution and submit again. You can also visit the discussion forum to see if your peers have experienced and found resolutions for similar errors, or if course staff have provided prior guidance for these errors… If the error isn’t resolved in 24 hours, please reach out to Coursera through our Help Center.
I modified my answer & I got even better output than I got before, which was actually closer to the expected output. However, I still get a grading error.

Hello Ehab,

With the below message you shared seems the models wants an expected accuracy than what you might be getting and probably that is why you are failing the grader.

Is there any message where you get the output about what should be the expected output?? Can you share the screenshot of your output result with the expected output. There will be instructions or statement written in the assignment. Do you see your output matching with the expected output? Please share screenshot of both!! Do not share the codes here.

Hello Deepti,
Thanks a lot for your response. Here is a screenshot of the output I got & the expected one.

Can I see the screenshot of your grader output after you optimized the hyper parameter which explains why your grader is still failing, chances are it might be failing because of something else. Did you try to make any more changes in Ex 2. Probably it is looking for more than 0.6 means 0.7. Did you try that once :slight_smile:

you current output is basically equal to 0.6 and not greater than 0.6 probably that’s why failing the grader.

Regards
DP

Actually the previous output was a bit greater than the new one. But also not 0.7 or greater.

Try achieving 0.7 and then submit. If you still don’t pass the grader, then share the codes via personal DM

I’ll do this. Thanks a lot for your help. I really appreciate it.

Ehab assignments can get updated anytime and is not related to a whole course but assignment update wise.

Ehab grader timed out error can happen if the grader is trying to grade a cell and it is taking too much time than expected. So check in your codes if your model algorithm can be adjusted upon accordingly for example number of epochs.

You can share your notebook, if you want I can also have a look

Regards
DP

Thanks a lot for your advice. It finally worked.

" timed out error can happen if the grader is trying to grade a cell and it is taking too much time than expected. So check in your codes if your model algorithm can be adjusted upon accordingly for example number of epochs"

That was the trick.