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/03 12:34:22 UTC

[GitHub] chinakook commented on issue #9265: Add label_from_zero_one argument to LogisticLoss

chinakook commented on issue #9265: Add label_from_zero_one argument to LogisticLoss
URL: https://github.com/apache/incubator-mxnet/pull/9265#issuecomment-355001691
 
 
   +1 and -1 label is very convenient because the loss and the backward can be calculated in a more mathematical elegant way. 
   However, the autograd mechanism of gluon implementation cannot get benefit from that because the backward can be manually(tricky) calculated as "grad = -label / (1 + exp(pred * label))" which is more numerical stable.
   So, I think +1 and -1 label may not have much effect here.

----------------------------------------------------------------
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