Hi there,
I am encountering a problem with the final unit test of the triplet loss exercise. All other unit tests passed but because this one fails I am getting a 66/100 grader output and cannot pass the assignment.
The final unit test goes like this:
y_pred_perfect = ([[1., 1.], [2., 0.]], [[0., 3.], [1., 1.]], [[1., 0.], [0., 1.,]])
loss = triplet_loss(y_true, y_pred_perfect, 1)
assert loss == 5, “Wrong value. Check your implementation”
My function implementation yields loss = 3.0.
When I do the hand calculation of this simple example, I am also getting 3 as an answer so I don’t understand how I should get 5. Is there an error with the unit test?
Cheers