"""If you have an imbalanced dataset of a ratio 1:10 of positives:negatives, set the bias on your logits such that your network predicts probability of 0.1 at initialization."""
Can someone translate this to PyTorch for me? Or give a simple example of how one would go about doing this?
It means, that if I have a 1:10 ratio in the data, an untrained net should predict positive in 10% of the cases, right?
Can someone translate this to PyTorch for me? Or give a simple example of how one would go about doing this?
It means, that if I have a 1:10 ratio in the data, an untrained net should predict positive in 10% of the cases, right?