Method
__init__
(self,
from_logits=False,
label_smoothing=0,
reduction=losses_utils.ReductionV2.AUTO,
name='binary_crossentropy')
Source from the content-addressed store, hash-verified
| 388 | """ |
| 389 | |
| 390 | def __init__(self, |
| 391 | from_logits=False, |
| 392 | label_smoothing=0, |
| 393 | reduction=losses_utils.ReductionV2.AUTO, |
| 394 | name='binary_crossentropy'): |
| 395 | super(BinaryCrossentropy, self).__init__( |
| 396 | binary_crossentropy, |
| 397 | name=name, |
| 398 | reduction=reduction, |
| 399 | from_logits=from_logits, |
| 400 | label_smoothing=label_smoothing) |
| 401 | self.from_logits = from_logits |
| 402 | |
| 403 | |
| 404 | @keras_export('keras.losses.CategoricalCrossentropy') |
Callers
nothing calls this directly
Tested by
no test coverage detected