Keras-Weighted-Binary-Cross-Entropy
Keras-Weighted-Binary-Cross-Entropy copied to clipboard
loss function for keras
Keras-Weighted-Binary-Cross-Entropy
Loss function for keras.
This modifies the binary cross entropy function found in keras by addind a weighting. This weight is determined dynamically for every batch by identifying how many positive and negative classes are present and modifying accordingly.