You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/08 03:53:38 UTC

[GitHub] jeremiedb commented on issue #7375: Can I set instance weight when training?

jeremiedb commented on issue #7375: Can I set instance weight when training?
URL: https://github.com/apache/incubator-mxnet/issues/7375#issuecomment-320843077
 
 
   The strategy I've used is to build a custom loss function using the MakeLoss operator and feeding it with the weights, For example: 
   loss = MakeLoss(weight * mx.symbol.square(label-pred))
   
 
----------------------------------------------------------------
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