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

Method __init__

tensorflow/python/keras/losses.py:89–92  ·  view source on GitHub ↗
(self, reduction=losses_utils.ReductionV2.AUTO, name=None)

Source from the content-addressed store, hash-verified

87 """
88
89 def __init__(self, reduction=losses_utils.ReductionV2.AUTO, name=None):
90 losses_utils.ReductionV2.validate(reduction)
91 self.reduction = reduction
92 self.name = name
93
94 def __call__(self, y_true, y_pred, sample_weight=None):
95 """Invokes the `Loss` instance.

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected