Week 4: Programming Assignment: Face Recognition

I have submitted my code successfully and all the test case was passed but at the end the marks was graded 0/100.

This error is shown by the show grade output window.

**Comment line with index: UNQ_C1 wasn’t found in code.

1 Like

You have changed the layout of the notebook or where you aren’t supposed to change stuff. Reset your work and only change where you are supposed to, leaving everything else as you found it.

Can you please tell how to to reset the work.

Now I am getting the new error eventhough the output is correct:(

Error:
Code Cell UNQ_C1: Unexpected error (AttributeError("‘NoneType’ object has no attribute ‘numpy’")) occurred during function check. We expected function triplet_loss to return triplet_loss test 1 failed. Please check that this function is defined properly.
Code Cell UNQ_C2: Unexpected error (TypeError(“ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’”)) occurred during function check. We expected function verify to return verify test 1 failed. Please check that this function is defined properly.
Code Cell UNQ_C3: Unexpected error (TypeError("’>’ not supported between instances of ‘NoneType’ and ‘float’")) occurred during function check. We expected function who_is_it to return compute_layer_style_cost test 1 failed. Please check that this function is defined properly.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

Did you reset the notebook and then only change where you are supposed to enter your solution? If you have errors, you should fail the tests included with the notebook. Run all cells and see where that takes you.

Yeah!! I reseted the notebook and reentered the solution. Its giving right output with no errors. If I click on runall its directing to the last cell as shown

send me the notebook as a private message and i will have a look

Done!! I had sent you the file:)

You didnt follow my instructions. You are only allowed to change cells between

YOUR CODE STARTS HERE

YOUR CODE ENDS HERE

For example you have changed this cell header:

I have done accordingly but again I am getting an error. But this time I got 66/100.

Error:Code Cell UNQ_C1: Function ‘triplet_loss’ is correct.
Code Cell UNQ_C2: Function ‘verify’ is correct.
Code Cell UNQ_C3: Unexpected error (TypeError("’>’ not supported between instances of ‘NoneType’ and ‘float’")) occurred during function check. We expected function who_is_it to return compute_layer_style_cost test 1 failed. Please check that this function is defined properly.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

Here is my file;
Face_Recognition.ipynb (101.9 KB)

When I submit your notebook I get 100%. Make a backup and make sure you remove all other files in your workspace (W4A1 folder should be deleted), before you refresh to also have new version of these files, then add your solution and submit.

Can you please tell me how to delete files.

Click jupyter logo
Screen Shot 2021-11-17 at 23.22.30

Click new terminal

Delete folder

Refresh all files and get a new folder

1 Like


Finally got it… Thanks a lot :slightly_smiling_face:

1 Like