Altough the tester is running this execise correctly (tsp_large_graph function), I’m getting a “Learner Error: Grader timed out” when I submit the lab to the grader. I’ve been trying this since yesterday with no different response.
This is the complete error message:
“Learner Error: Grader timed out
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`ve restarted and erased the lab files to get new ones, but even with that process completed, the result still being the same.
It’s very frustrating that something that runs correctly in your machine doesn’t run in the grader.
Another thing that I noticed is that there’s a submission checker at the end. I tried it but it is saying this for the first excesise (Exercise 1: shortest_path): “You should not change any given class method. Autograder will likely fail.” And this is not true, since they say in that same exercise that you are able to add new functions into the class! This is what they specified:
This is the full message with the checker indicating not to add functions to the class:
There are no problems with the grader that we know of. Please can you check my suggestion for this post:
I think that you have the same issue i.e. your implementation is not right, ask the LLM about that too.
Its always good to do a reset of the Lab but I think that your issue is with the implementation and do ask the LLM to give you another type of implementation!
Thanks for your reply. So, even though your tests work in the online lab (with the test cases you guys created) you can conclude the code is not ok ? I don’t get the idea about having/providing tests then.
The built-in tests do not cover absolutely every possible error in your code.
They just give a first-glance check.
Passing the built-in tests never proves that your code is perfect.
Thanks for the comment. The problem I see here is that I can’t see any error given by the grader. It’s just saying “time out”. Should I assume that the algorithm is jus taking too much in the grader execution but not in the lab testing cases execution ?
There are lots of things that can cause a timeout by the grader. I’m not a mentor for that course, so I don’t know specifically what ills this assignment tends toward.
One common pitfall in general is if your code outputs a lot of data to the notebook console, This can cause the file to be too big for the grader to import before the server times-out.
Hi TMosh and gent.spah. I changed the implementation with another LLM and this time the solution worked in the grader process. Hopefully deeplearning.org could get a solution for the problem which is basically as follows: when running the test cases, the functions run with no errors and within the proposed time constraints, however, when the grader process is executed, a time out generates, which is not aligned with the results obtained with the test scripts provided in the lab.