Week 3: Receiving a grading error in Intro to Generative AI for Software Development

  • Week # 3

  • I am submitting my assignment at the grading is saying:

  • There was an error grading your submission. Details:
    GraphShortestPath.init() missing 1 required positional argument: ‘adjacency_list’

No issues are being found and I need help.

Hi @cneal

This means that your code or the lab code is not providing the required adjacency_list argument to the __init__ method. Double-check the line where you create the GraphShortestPath object and ensure you are passing the adjacency list correctly.

Hope it helps! Feel free to ask if you need further assistance.

2 Likes

Also, you can feed this error to the LLM alongside the code, and it will also give you hints and suggestions! Also you posted on the wrong Specialization.

1 Like

I did that and I even checked to see if 2 different LLM’s could determine where my error was and they both said it was fine and should run correctly. I’m lost.

Ask the LLM to give you another solution, there are quite a few solution algorithms for each of the exercises! What is your error anyway?

Gent.spah

ModuleNotFoundError: No module named ‘unittests’

How do I get a copy of Unittests.py and submission_checker.py from the coursera site I am currently completing the course and getting the above error message

I am using the coursera standalone environment supplied as part of the course.

Please provide any suggestions you can

Seems to me there is something wrong with your code, its saying you are missing arguments in the method functions. You can always feed this information to the LLM as well.

If that is not the case you need to perform a reset from the question mark on the top right corner, and then get latest version, but its better to delete the current items on the folder (or rename them)! And then try again!

At the left side, the files can be downloaded:

You should not upload code solutions publicly! Did you try to reset the assignment and unnitests?

Please try optimizing the efficiency of your solution and submit again. tsp_large_graph

Right, this means that your solution is not correct! Feed this feedback to LLM and ask it to provide a more efficient solution, feed it also the exercise requirements in terms of time and number of nodes.