royhirsch:

a_i is an indicator in the index i. if for the i’s cordinate the gt is true a_i = 1 .


So a_i is your label?



 royhirsch:

As I see it w_pos is determine the cost/punishmentof miss-predicting positive label and w_neg is the punishment for miss-predicting negative label


So you want different influences of different classes on the loss function - how is that different from using pos_weights?