Hi everyone,
I’m stuck on a grading issue with the Deep Q-Learning (Lunar Lander) assignment in Course 3, Week 3, and I’d appreciate any guidance from mentors or staff.
Lab ID: phrtxiodwhir
The problem:
My compute_loss function (Exercise 2 / UNQ_C2) fails on the autograder with:
“Code Cell UNQ_C2 failed: compute_loss test 1 failed”
Grade received: 50% (need 80% to pass).
However, when I run test_compute_loss(compute_loss) locally in the notebook — using the actual public_tests.py file provided in the lab - it returns “All tests passed!” every time, including all four internal assertions.
My compute_loss implementation:
[removed by mentor]
This matches the standard DQN target formula exactly, and UNQ_C1 (q_network, target_q_network, optimizer) is confirmed correct by the grader every time.
What I’ve already tried, with no change in result:
- Restarting the kernel and re-running all cells from scratch.
- A full “Restart & Clear Output → Run All,” letting the complete ~12-minute training loop finish (which does complete successfully — “Environment solved in 534 episodes!”).
- Confirming the compute_loss cell is a proper Code cell, not accidentally converted to Markdown.
- Closing duplicate browser tabs of the same lab.
- Rebooting the lab server via the Lab Help panel.
- Submitting 6+ times across different timestamps on the same day - identical failure message every time.
Given the consistency of the failure despite passing the actual grading logic locally, I suspect this might be a backend sync issue between the lab environment and the autograder for this specific lab.
Has anyone else hit this exact issue recently? Any guidance on getting this manually regraded would be appreciated — this is the final graded item in the course.
Thanks in advance!
