Practice Lab: Neural Networks for Handwritten Digit Recognition- error

Hello,

I am trying to submit my assignment for the first practice lab of the Course
" Advanced Learning Algorithms", but it seems that there is a typo in a non-editable cell, which prevents me from passing the assignment.

Has someone had the issue ? Or do you know how to fix that ?
The line in error is :
random_index = np.random.randint(m)%%!

and results in :
“random_index = np.random.randint(m)%%!
^
SyntaxError: invalid syntax”

Thanks in advance

Please post your message in the forum area for that course.
You’ve used the “Learning Platform Feedback” forum, which is not specific to any course. It does not identify the course name or week number or assignment number. That makes it difficult for the course staff and mentors to assist you.

You can find the course forums via the “Course Q&A” topic in the left-side menu.

To your issue:
Note that those incorrect characters do not appear in the original notebook from the course repo:

So somehow, your notebook has been altered.

The simplest way to fix this is for you to use the File → Rename tool, and change the name of your notebook.

Do not ever use this renamed notebook again.

Then, use the Lab Help tool, and use “Get latest version”. This will give you a new copy of the notebook.

The “Lab Help” tool is the question-mark inside a circle, in the upper right corner of the browser.

Note that “Get latest version” will not update any existing files - that’s why you must first rename (or delete) your original notebook.

1 Like

Thanks a lot got your answer. The use of “Get latest version” recreated a version of the notebook with the accurate cell.

Have a nice day

1 Like