Do we have an equivalence for the following question, but with tensorflow : How to set class weights for imbalanced classes in Keras? ??
Asked
Active
Viewed 4,509 times
1 Answers
2
There's a function that does it automatically: tf.contrib.losses.softmax_cross_entropy(logits, onehot_labels, weight=weight)
David Masip
- 6,136
- 2
- 28
- 62