I got stuck on calculating the triplet loss function. I tried to switch v2 and v1 on scores variable. I changed to axis to 1 on closest_negative variable. I still got the output 4.999 instead of 0.7. Could anyone DM me to review my code? Thanks!!
did you check the triplet loss1 and triplet loss2 codes? did you tuple the recall codes correctly?
This is another post with each step value which one could check using #print for each step and compare the value. where ever the values aren’t matching, you need to check upon.
Yes, I did. And I still got the incorrect output…
did you refer this one?
No. I have not tried to print the intermediate value… I did not know what is the correct value are we looking at.
go through that comment by @arvyzukai
that chart value mentions each step value, so when you add print after your codes, you could match with comment link I shared which has the correct value related to each step.
2 Likes