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

Function MeanSquaredError

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

Source from the content-addressed store, hash-verified

8 return T.nnet.binary_crossentropy(y_pred, y_true).mean()
9
10def MeanSquaredError(y_true, y_pred):
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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected