C4W4 A1 (Face Recognition) - Triplet Loss Grading

I’ve got a problem with my triplet function in the coding assignment.

I also can’t find the mistake in my implementation.

In the last unit test it raises: assert loss == 5, “Wrong value. Check your implementation” Even though my to my understanding the loss == 3.

Thanks for any help!

(I’m learning on the coursera platform but wasn’t allowed to use the coursera tag)

Solution Code Removed

Please check your step 4 carefully. Instruction is:
# Step 4: Take the maximum of basic_loss and 0.0. Sum over the training examples.

First, you have to take the max between basic_loss and 0.0, then sum…

1 Like

Ooh thanks! <3

Don’t know how I could miss that