Hi folks,
I’m facing an issue with passing the grading process for the “Week 3 - Programming Assignment”. I can pass unittest when I work in the Jupyter Notebook (restart the kernel and re-run all cells), but when I submit my assignment for grading, it fails with the following messages:
Failed test case: Failed to achieve 85% of success in test cases. Examples of failed tests will be provided.
Expected:
At least 85% of success tsp_medium_graph running below 1.3s and achieving the correct distance,
but got:
Success rate: 97%.
Failed test case: Failed to find a solution a solution closest to the optimal solution. To replicate the graph, you may run generate_graph(nodes = 300, complete = True, seed = 65).
Expected:
Solution no greater than 65% of Nearest Neighbor.,
but got:
For the graph starting at node 0, the target path distance to beat is 2911. Your algorithm returned a distance of 8001, greater than 76%.
May I kindly ask you to check what’s going on? Happy to share the code if needed.
Screenshot: