crested.tl.metrics.ZeroPenaltyMetric#

class crested.tl.metrics.ZeroPenaltyMetric(name='zero_penalty_metric', **kwargs)#

Zero penalty metric.

Attributes table#

Methods table#

reset_state()

Reset the state of the metric.

result()

Calculate the result of the metric by averaging the zero penalty over num batches.

update_state(y_true, y_pred[, sample_weight])

Update the state of the metric.

Attributes#

Methods#

ZeroPenaltyMetric.reset_state()#

Reset the state of the metric.

ZeroPenaltyMetric.result()#

Calculate the result of the metric by averaging the zero penalty over num batches.

ZeroPenaltyMetric.update_state(y_true, y_pred, sample_weight=None)#

Update the state of the metric.