I think there still might be a bug, as your model is apparently even with a pos_weight<1 still predicting only the minority class.
I don’t know, how preds_all was calculated, but could you post the model definition, the training routine, as well as all necessary input shapes and other arguments to execute the script?