Contrastive Loss(对比损失)

Contrastive Loss 在传统的siamese network中一般使用Contrastive Loss作为损失函数,这种损失函数可以有效的处理孪生神经网络中的paired data的关系。 siamese network-孪生神经网络 contrastive loss的表达式如下: # tensorflow伪代码 def contrastive_loss(self, y,d,batch
相关文章
相关标签/搜索