TF1: Assignment Troubleshooting Tips

Here are some general guidelines before submitting your assignments in this specialization. Please take note of the course numbers each tip is applicable to:

  1. [Courses 1, 3 (except Week 4), and 4]: Please save your work before clicking the Submit button. If not, you might get an error message like in the code cell below because the grader still sees your solution as None.

    Failed test case: x has incorrect type.
    Expected:
    some.Type,
    but got:
    <class 'NoneType'>.
    
  2. [Courses 1, 3 (except Week 4), and 4]: Please do not rename the notebook because the grader will look for the original filename and its associated metadata. You should work on the file automatically opened when you click the Launch Notebook button. If you try to submit a renamed notebook, you might also get an error like the one shown above.

  3. [All Courses]:Please do not modify any code outside the START CODE HERE and END CODE HERE tags. Your solution should only be placed between these markers to ensure successful grading. Modifying function parameters and other test cells will likely break the grader. If you want to experiment with these, you can do so after you have successfully passed the assignment.

  4. [Courses 1, 2, and 3]: If the grader still gives you 0/100 after following the tips above, then the metadata needed for grading might be corrupted.

    • For Courses 1 and 3 (except Week 4), please get a new lab notebook by refreshing your workspace (instructions here).
    • For Courses 2 and 3 (Week 4), you can get a new copy of the notebook by just reopening the lab from your classroom.
    • Course 4 assignments do not depend on this metadata so this tip is not applicable.

    You can then copy your solutions from your previous notebook into the newly fetched lab. Make sure that all cells still run as expected, and then resubmit. Refreshing will usually recover the metadata but if you want to make sure that it is there, you can follow the instructions in this post.

  5. [All Courses]: If you have further questions, please create a new public topic so more mentors can see your query. Just make sure to create it in the correct course and week category.

2 Likes

import error(s)
Please check if the import(s) is valid in tensorflow 2.7.0 as the grader uses this version to score your submission.

Here’s an example.

1 Like