MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tensorflow/python/keras/losses.py:454–464  ·  view source on GitHub ↗
(self,
               from_logits=False,
               label_smoothing=0,
               reduction=losses_utils.ReductionV2.AUTO,
               name='categorical_crossentropy')

Source from the content-addressed store, hash-verified

452 """
453
454 def __init__(self,
455 from_logits=False,
456 label_smoothing=0,
457 reduction=losses_utils.ReductionV2.AUTO,
458 name='categorical_crossentropy'):
459 super(CategoricalCrossentropy, self).__init__(
460 categorical_crossentropy,
461 name=name,
462 reduction=reduction,
463 from_logits=from_logits,
464 label_smoothing=label_smoothing)
465
466
467@keras_export('keras.losses.SparseCategoricalCrossentropy')

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected