Here it is the formula I built: My equation for weighted binary cross entropy loss
Where:
alpha(i) = #Negative samples / Total samples if y(i)=1
alpha(i) = #Positive samples / Total samples if y(i)=0
Is it correct? I cannot find any similar formula on the internet. Thank you!