Keras: weighted binary crossentropy
Normally, the minority class will have a higher class weight. It’ll be better to use one_weight=0.89, zero_weight=0.11 (btw, you can use class_weight={0: 0.11, 1: 0.89}, as suggested in the comment). Under class imbalance, your model is seeing much more zeros than ones. It will also learn to predict more zeros than ones because the training … Read more