Loss function for class imbalanced binary classifier in Tensor flow
<p>I am trying to apply deep learning for a binary classification problem with high class imbalance between target classes (500k, 31K). I want to write a custom loss function which should be like: 
minimize(100-((predicted_smallerclass)/(total_smallerclass))*100)</p>

<p>Appreciate any pointers on how I can build this logic. </p>