C1_W3_Logistic_Regression Exe 5

Getting the attached error on exercise 5, not sure how the answer is slightly diff from expected. i have tried multiple times and finally copied code from the hints, still the assertion error stays.

It seems due to this error, submission also fails.

Hi @aaparmar ,

If you are sure your code is correct, then, try to do a clean run of your code, from the menu bar at top of your notebook, click:
Kernel ->restart & clear output
rerun code from the first code cell in sequence

I see two issues here:

  • Your code didn’t return the correct value for the test case in the notebook.

  • When the grader says “an unexpected error occurred”, it means your notebook is missing some important information that the grader uses. This is usually due to you deleting some information that it needs, or adding or deleting some cells from the notebook.

The easiest way to fix this type of issue is to delete your notebook, get a fresh copy, and start over.

Thanks for getting back. Still getting the error.

I restored the lab, using the option showing in img1.

Even after reset, when i submit blank lab, i get “unexpected error”. I was trying to confirm if my changes are causing some issue. Img2.

If it helps, i noticed that in Exe 5 and 6 does not have “GRADED FUNCTION”. Img3. Again this is default but i learned in other thread that first 2 lines, UNQ and GRADED FUNCTION are necessary for lab to work..

After you used “Restore Original Version”, did you exit the “code assignment” page, then re-enter it again?

I don’t think the “GRADED FUNCTION …” text is important, because other learners would have reported a problem much sooner than this. But I’ll test that in more detail.

Hi @aaparmar ,

Looking at the screenshot you posted here, the brown coloured No Kernel flag is on. You need to restart the kernel and rerun your code as per instruction earlier.

1 Like

So, now i can clear the assertion error, it was a code mistake.

But submission still fails after running for for 3-4 minutes. All code tests are passed. I am not changing or adding other than allowed code sections.

What do you mean by exist “code assignment” page? When i “restore original version”, it works for few minutes and full notebook loads empty. Today i started from fresh notebook, but not able to solve submission error.

Hi @aaparmar ,

Please post a screenshot of the submission error displayed. Without it, it is difficult to work out the problem you are experiencing.

The same “an unexpected error occured. pls try again later” .
No other msg, it load for 3-5 minutes and then give this error..

As requested, please post a screen capture image of your entire lab session.
The mentors would like to see the state of all of the UI indicators in the browser.

Hi. As Tom mentioned, please post the screenshot so they can help inspect what might be wrong.

On a separate note, can you send me your current notebook via direct message? Would like to troubleshoot the “unexpected error occurred” message you’re getting. Ideally, you should not wait that long to get feedback from the autograder. You can click my name then the blue Message button. Thank you.

Hi @chris.favila ,

I have been communicating with @aaparmar, and the cause of the problem is due to ParseError in 3 locations of the markdown cells under section 3.5 of the assignment on the DL platform.
I have checked the assignment file on the DL platform, and none of such ParseError can be found. I have advised the learner to remove the existing assignment file and get a fresh copy, checking that the fresh copy has no ParseError.

1 Like

Understood. Thanks Kin!

Just to add an update on this thread. I have just finished coding the assignment on the DL platform and submitted to the grader without any issue. The response time from the grader was less than 1 min.