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

Function BinaryCrossEntropy

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

Source from the content-addressed store, hash-verified

5 return T.nnet.categorical_crossentropy(y_pred, y_true).mean()
6
7def BinaryCrossEntropy(y_true, y_pred):
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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected