C3W3_Assignment excersise 02 Triplet Loss

Hello, I am struggling with excersise 02, in week3 in course 3 (Natural Language Processing with Sequence Models). I think I’ve done everything right, but I still get Triplet loss as 4.907, not 0.70. How can I debug each element (each tensor), to know if I am on the right path? Or, could I paste my code (which is probably wrong in some place, thus does not include the full solution), to get a review?

Best,
Eleonora Kulberkyte

hi @Eleonora_Kulberkyte

go through below threads

The below link is another way to check if your each step value matches so you know where you need to correct :point_down:t2:

let me know if still issue persist

Regards
DP

Hi Deepti,

This was super good: C3W3Assignment: Exercise 02 TripletLossFn() - #2 by arvyzukai. Thanks for your help!

Best,
Eleonora

1 Like

that was the same thread that help me debug my codes when I was doing the assignment first time.

Keep Learning!!!