My code pass all test, but when i submit my result the score is 0/100 i dont know what happened, please i need help
Cell #15. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (’/tmp/student_solution_cells/cell_15.py’, 24, 518, ‘’’’\nassert(np.allclose(verify("/tmp/ex1/images/camera_1.jpg", “bertrand”, database, FRmodel), (0.54364836, True)))\nassert(np.allclose(verify("/tmp/ex1/images/camera_3.jpg", “bertrand”, database, FRmodel), (0.38616243, True)))\nassert(np.allclose(verify("/tmp/ex1/images/camera_1.jpg", “younes”, database, FRmodel), (1.3963861, False)))\nassert(np.allclose(verify("/tmp/ex1/images/camera_3.jpg", “younes”, database, FRmodel), (1.3872949, False)))\n\nverify("/tmp/ex1/images/camera_0.jpg", “younes”, database, FRmodel)\n’’‘da\n’))
It looks like there is something structurally wrong with your notebook. It’s a bit hard to parse the errors, but one guess is that you accidentally turned one of the “code” cells into a “markdown” cell or something like that. Use the string search function in the notebook to find camera_1.jpg and that should take you to the cell in question. Is it executable? If not, click it and then click “Cell → Cell Type → Code”.
Actually I just tried the experiment of turning that cell into a Markdown cell and the grader is fine with it. Oh, well.
Other things to try: “Kernel → Restart and Clear Output”, “Save” and then submit again and see if that makes a difference.
Another more invasive thing to try would be to get a fresh copy of the notebook and very carefully “copy/paste” over just your completed code. There is a topic on the FAQ Thread about how to get a fresh copy.
1 Like
Thank you very much for the advice, the problem has already been solved.
This was the solution: “Another more invasive thing to try would be to get a fresh copy of the notebook and very carefully “copy/paste” over just your completed code.”
1 Like
It’s great that you got it to work. Thanks for letting us know which solution worked! It contributes to the knowledge base of how to map from symptoms to solutions. Thanks!