Contrastive Loss(對比損失)

Contrastive Loss 在傳統的siamese network中一般使用Contrastive Loss作爲損失函數,這種損失函數可以有效的處理孿生神經網絡中的paired data的關係。 siamese network-孿生神經網絡 contrastive loss的表達式如下: # tensorflow僞代碼 def contrastive_loss(self, y,d,batch
相關文章
相關標籤/搜索