提交 7f6ff6f5 编写于 作者: M minqiyang

Polish doc

test=develop
上级 35e547e0
...@@ -5830,7 +5830,13 @@ def rank_loss(label, left, right, name=None): ...@@ -5830,7 +5830,13 @@ def rank_loss(label, left, right, name=None):
def margin_rank_loss(label, left, right, margin=0.1, name=None): def margin_rank_loss(label, left, right, margin=0.1, name=None):
""" """
**Margin Rank loss layer for rank problem** Margin Rank loss layer for rank problem, which comparing left value and right value be passed in.
The rank loss can be defined as below equation:
.. math::
rank\_loss &= max(0, -label * (left - right) + margin)
Args: Args:
label (Variable): Indicats whether left higher than (right + margin) or not. label (Variable): Indicats whether left higher than (right + margin) or not.
left (Variable): rank score for left. left (Variable): rank score for left.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册