MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / cost

Function cost

ann_class/backprop.py:99–101  ·  view source on GitHub ↗
(T, Y)

Source from the content-addressed store, hash-verified

97
98
99def cost(T, Y):
100 tot = T * np.log(Y)
101 return tot.sum()
102
103
104def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected