torch深入学习之凤飞九天torch.nn.MarginRankingLoss

上一篇水文,这次还得学习模型,源于Chorus模型,自搜可得

For Video Recommendation in Deep learning QQ Group 277356808

For Visual in deep learning QQ Group 629530787

I'm here waiting for you

 这里学习一个损失函数MarginRankingLoss,如下,如果不知道怎么来的,建议你直接将help出来的math,复制粘贴到公式下

\text{loss}(x, y) = \max(0, -y * (x1 - x2) + \text{margin})

margin默认为0,浮点型数据。

猜你喜欢

转载自blog.csdn.net/SPESEG/article/details/108223805