You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/14 23:49:37 UTC

[GitHub] sxjscience commented on a change in pull request #9404: Use a better formula to calculate sigmoid_bce and logistic_loss

sxjscience commented on a change in pull request #9404: Use a better formula to calculate sigmoid_bce and logistic_loss
URL: https://github.com/apache/incubator-mxnet/pull/9404#discussion_r161414710
 
 

 ##########
 File path: python/mxnet/gluon/loss.py
 ##########
 @@ -635,8 +635,8 @@ class LogisticLoss(Loss):
 
     Inputs:
         - **pred**: prediction tensor with arbitrary shape.
-        - **label**: truth tensor with values -1 or 1. Must have the same size
-          as pred.
+        - **label**: truth tensor with values -1/1 (label_format is 'signed')
+          or 0/1 (label_format is 'binary'). Must have the same size as pred.
 
 Review comment:
   @szha I've updated the description of 'label'.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services