CNN Week 3: YOLO Car Detection Grader Error!

I’ve passed all the tests in the notebook, but the grader is showing 0/100 and posting the error below:

Cell #5. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (’/tmp/student_solution_cells/cell_5.py’, 35, 1058, ‘yolo_filter_boxes’’’
\n## Test case 1: boxes intersect
\nbox1 = (2, 1, 4, 3)
\nbox2 = (1, 2, 3, 4)
\n
\nprint("iou for intersecting boxes = " + str(iou(box1, box2)))
\nassert iou(box1, box2) < 1, “The intersection area must be always smaller or equal than the union area.”
\nassert np.isclose(iou(box1, box2), 0.14285714), “Wrong value. Check your implementation. Problem with intersecting boxes”
\n
\n## Test case 2: boxes do not intersect
\nbox1 = (1,2,3,4)
\nbox2 = (5,6,7,8)
\nprint("iou for non-intersecting boxes = " + str(iou(box1,box2)))
\nassert iou(box1, box2) == 0, “Intersection must be 0”
\n
\n## Test case 3: boxes intersect at vertices only
\nbox1 = (1,1,2,2)
\nbox2 = (2,2,3,3)
\nprint(“iou for boxes that only touch at vertices = " + str(iou(box1,box2)))
\nassert iou(box1, box2) == 0, “Intersection at vertices must be 0”
\n
\n## Test case 4: boxes intersect at edge only
\nbox1 = (1,1,3,3)\nbox2 = (2,3,3,4)
\nprint(“iou for boxes that only touch at edges = " + str(iou(box1,box2)))
\nassert iou(box1, box2) == 0, “Intersection at edges must be 0”
\n\nprint(”\033[92m All tests passed!”)
\n’’’
\n’))

i am getting same error i manually calculated and ans is 0 but still getting following error

AssertionError: Intersection must be 0

Dear Tom, I have the same problem with the Yolo Assignment 1 (ex-w3a1). All my tests are passing but the grader is giving me zero marks. Should I also send you my code? And by sending a “direct message” what do you mean?

The Grader error I’m getting is the following:

Cell #4. Can’t compile the student’s code. Error: NameError(“name ‘scores’ is not defined”)

Bubele Vakalisa

The Grader error I’m getting is the following:

Cell #4. Can’t compile the student’s code. Error: NameError(“name ‘scores’ is not defined”)

Sorry, but I cannot diagnose the issue based on the info you provided.
There are “scores” variables in at least three different functions in this exercise.

Did you complete the entire notebook before submitting it for grading? You can’t leave any functions incomplete, or the grader will complain.

Yes, I did. You can see that from the fact that when I “Restart and Run All” the Kernel of the Jupyter Notebook, it runs from the beginning of the notebook to the end without an error. Therefore all the functions are in order.

The unit tests do not catch every possible error in your code.
It is quite possible to pass all the tests and still have code that isn’t correct.

My code is correct. Certainly, even if it was somehow incorrect, There are 4 exercises in the assignment. What is the probability that all four exercises would be incorrect, but all test correctly, only for the grader to pick all the errors? The graders for these assignments have been malfunctioning all the way. There are many instances in which I had to resubmit the same notebook a couple of times before getting the correct grade. Infact the very next assignment after this one, is preceded by a reading that explains that it might not grade properly and gives instructions on what to do under those circumstances (Refer to the screenshot below). I have followed all these instuctions, with no success. So this really is not a matter of code being incorrect.

Dear Tom.

I found the error. I had left a code cell with a very small line that was not part of the assignment, in my code. Small error, big effect. I learnt my lesson. Thanks for your patience​.

Regards