NLP course Sequence Models Week 3 final programming assignment doubt

Hi @Rashmi11

Refrain from posting any grade cell codes in future. It is against community guidelines and continuing to do so can affect your use of discourse community.

  1. Your scores code recall requires you to mention v2 before v1.
  2. your compute tf.maximum among 0.0 and A as well as for B is incorrect. Read the instructions carefully again. it first mentions you subtracts margin-positive and then that value to be added to mean_negative for A and in case of B margin-positive and then added to closest negative. Here using tuple plays a major significant role for getting the correct value of triplet_loss1 and triplet_loss2

Regards
DP

1 Like