TransWikia.com

How does Keras calculate the categorical cross-entropy?

Data Science Asked by Tie-fighter on March 2, 2021

From https://towardsdatascience.com/cross-entropy-for-classification-d98e7f974451 I understand that categorical cross-entropy is -log(q(x))

When using tf.keras.losses.CategoricalCrossentropy I assume that loss is calculated per batch and per epoch as the weighted sum of the losses of the training instances or is there something else?

(So with k-fold the loss would be the sum of weighted losses of the training folds and the validation loss would be the sum of weighted losses of the validation loss?)

How does Keras deal with a loss of inf?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP