Skip to content

Commit d067799

Browse files
committed
Fixed hinge loss documentation
Former-commit-id: 7098be9
1 parent cb74023 commit d067799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/_dynet.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3039,7 +3039,7 @@ cpdef Expression hinge(Expression x, unsigned v, float m=1.0):
30393039
m (float): The margin
30403040
30413041
Returns:
3042-
dynet.Expression: :math:\\sum_{\\tilde{v} != v} max(x_{\\tilde{v}} - x_v + m, 0)
3042+
dynet.Expression: :math:`\\sum_{\\tilde{v} != v} max(x_{\\tilde{v}} - x_v + m, 0)`
30433043
"""
30443044
return Expression.from_cexpr(x.cg_version, c_hinge(x.c(), v, m))
30453045
cpdef Expression hinge_batch(Expression x, vector[unsigned] vs, float m=1.0):

0 commit comments

Comments
 (0)