Hi
This is my function:
{moderator edit - solution code removed}
I’m following all the steps in the notebook. However I’m not getting the result presented below, and the function does not pass the tests. Is the code logic right ?
triplet_loss1 tf.Tensor([0.44678335 0.29541155 0.07213812], shape=(3,), dtype=float64) triplet_loss2 tf.Tensor([0.17809839 0.20458846 0. ], shape=(3,), dtype=float64) Triplet Loss: 1.197019864328954
Expected Output:
Triplet Loss: ~ 0.70
The comment there is pretty specific and the code you wrote does not do what it says.
But when I fix the code to agree with the comment, the overall answer still does not agree, so there may be other things you need to investigate later in the function.
Also please note that we aren’t supposed to share solution code in a public way. So you can’t just post your code and say, in effect, “please fix it for me”. If the mentors can’t figure out how to help without seeing your code, then there are private ways to do that.
Yes.
It was a mistake.
Thank you.
I already could see and study the whole code by another post here.
In fact I just finished this course.
Thank you for your answer