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

Method __init__

tensorflow/python/keras/losses.py:390–401  ·  view source on GitHub ↗
(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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected