Method
__init__
(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
Tested by
no test coverage detected