All unit tests passed successfully, but the autograder still shows 0/100 for this lab

Images removed as it contained codes that grades your assignment and posting codes on public post is considered gross violation of code of conduct. If a mentor wants to look at your codes they will ask you to send by personal DM. Until then when you create a topic, provide a brief description of your issue like which exercise your encountered error,you can verbally hint out how you recalled your codes without directly posting it, or post screenshot of your encountered error, failed unittest, or failed submission grader

What is the detailed feedback from the grader?

Not the course status summary, but the actual grader feedback on the page for that assignment.

i was saying earlier that it wasn’t defined before, so i thought i’d set some variables to 3 and try solving it that way

but i’m still facing this issue. kindly help me out, homie.

the detailed grader feedback says:

“There was a problem compiling the code from your notebook. Details: name ‘L_array’ is not defined.”

this error appears under Exercise 1: Load the historical price values and convert them into NumPy arrays. because of this compilation error, the grader could not execute the notebook and all exercises show 0 points.

There is no reason to submit your code for grading until it passes all of the notebook’s built-in test cases.

That is not a good method.

All of the required functions are already defined. Every time you open the notebook, you must run all of the cells in order starting from the top.

Do post any grade function codes that grades your assignment. it is gross violation of code of conduct

yes, i understand. i have been running the notebook from the top each time.

earlier all the built-in unit tests in the notebook were passing successfully, but the autograder was still giving me 0/100. that’s why i tried defining some variables manually to debug the issue.

right now the grader feedback shows: “there was a problem compiling the code from your notebook. details: name ‘L_array’ is not defined.”

i have already submitted around 40–50 times while trying different fixes, but the score is still 0. could you please help me understand where exactly the issue might be in the notebook or submission format?

can u give me solution like why it’s failed

ive even tight deadlines to submit this in clg. I mean course certification.

im trying for a week btw it’s error error wt lol :sob::sob::sob::sob::sob:

Write your codes completely in the assignment and submit. if it still fails, then post screenshot of submission grade, because currently you are just showing a part of the section.

remember a grader fails no matter your codes might be correct (sometimes, but here in your case clearly shows you had error and yet you submitted resulting in submission grader failure)

So try again, show us the unittest passed and yet submission failed, so we can review your codes

Passing assignment deadlines is not to be worried, you can always extend the date, but doing the assignment right way is only going to result in successful submission.

Hello ma’am,

i wanted to inform you about an issue i am facing with the coursera assignment submission.

i have carefully completed the notebook and ensured that all the built in test case inside the notebook are passing successfully, i have also restarted the kernel and run all cells from the beginning multiple times to make sure everything executes correctly

however, even after that, when i submit the assignment to the coursera grader, it still shows an error or gives an incorrect grading result. because of this, i am not sure whether the issue is coming from my code or from the grading system.

i have already tried submitting the assignment multiple times after verifying the outputs, but the problem still persists. since I need to submit the coursera certification to the college before the end of this week, I would really appreciate it if you could kindly check this issue once or guide me on what might be causing the problem.

thank you for your time and support.

@yash411

stop posting codes on public post, it is against community guidelines.

when you passed the unittest, the submission grader screenshot you shared, click on the show submission grader output which will provide detail on why you failed the grader.

I have removed any screenshots that had your grade function codes.

I am sending you DM, send me screenshot of codes there

hi @yash411

The reason you’re. failing submission grader is

  1. Corrupting the file assignment. When you edit/delete/add anything outstanding the assigned CODE MARKERS(###START AND END YOUR CODE HERE), No matter how correct is your code, you will fail submission due to autograder.
  2. You. have! edited out some parts of codes which you weren’t suppose to touch for exercise 2, 3, 4.
  3. Your exercise! 3 codes don’t even have the CODE MARKERS. Did you by any chance copy paste codes resulting in deletion of code markers?
  4. Lastly your exercise 4 codes has a code implementation error. Do not recall a separate code name as f for are L_array while writing codes for dLdOmega. it’s much simpler, how you recalled the L code in the previous exercise 3, to the same code line, you need to apply grad.

All your other codes are right. So get a fresh copy of assignment, make sure just to write the codes between the code markers and do not edit anything outside the markers.

Then save your work environment once you have run all the cell individually from start to end. NOW SUBMIT. You will pass the grader.

Another heads-up, from next time always create a topic which follows community guidelines, no posting of grade function codes in your screenshot, edit out and then pos images. Also don’t panic, instead when failing an assignment 2-3times, it’s time to post a query here in forum with proper description instead of submitting a failed submission 40-50 times.

Deadlines are reminder for your learning journey not a bullet to end your learning journey.

Post your query in discourse forum even if you feel you have a silly doubt, this way you’re saving yourself lot of time, frustration and learning in more sporadic way. GOOD LUCK

Regards

Dr. Deepti

To close this thread, yash was working on older version of assignment including the previous response of error i mentioned. So when he wrote the codes correctly he still failed as he was submitting an older version for submission grader.

At this time, he was advised to first download his file into his local drive.

Then click File==>Open. Delete the assignment file.

Click :red_question_mark:, then click reboot and update file, to get the latest version of the assignment file.

Making sure he followed the instructions mentioned in my earlier response here, he wrote the codes between the Code Markers without editing anything outside the Code Markers.

Save his work environment by clicking on :floppy_disk:

Submitted his latest assignment to pass his assignment successfully.

This explanation is for anyone who gets a grader submission mentioning, you are working on an older version of assignment. Please follow the step mentioned here to pass the grader.

Good Luck, keep Learning!!!

Regards

Dr. Deepti

2 Likes