MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / MeanAbsoluteError

Function MeanAbsoluteError

lib/costs.py:13–14  ·  view source on GitHub ↗
(y_true, y_pred)

Source from the content-addressed store, hash-verified

11 return T.sqr(y_pred - y_true).mean()
12
13def MeanAbsoluteError(y_true, y_pred):
14 return T.abs_(y_pred - y_true).mean()
15
16def SquaredHinge(y_true, y_pred):
17 return T.sqr(T.maximum(1. - y_true * y_pred, 0.)).mean()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected