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 2019/01/04 01:48:41 UTC

[GitHub] anirudhacharya commented on a change in pull request #13612: add pos_weight for SigmoidBinaryCrossEntropyLoss

anirudhacharya commented on a change in pull request #13612: add pos_weight for SigmoidBinaryCrossEntropyLoss
URL: https://github.com/apache/incubator-mxnet/pull/13612#discussion_r245184013
 
 

 ##########
 File path: tests/python/unittest/test_loss.py
 ##########
 @@ -420,6 +420,37 @@ def test_poisson_nllloss_mod():
             initializer=mx.init.Normal(sigma=0.1), eval_metric=mx.metric.Loss(),
             optimizer='adam')
     assert mod.score(data_iter, eval_metric=mx.metric.Loss())[0][1] < 0.05
+    
+@with_seed()
+def test_bce_loss_with_pos_weight():
+    #Suppose it's a multi-label classification
+    N = 20
 
 Review comment:
   please fetch a random number here for N

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