MCPcopy Create free account
hub / github.com/MichalDanielDobrzanski/DeepLearningPython / fn

Method fn

network2.py:45–54  ·  view source on GitHub ↗

Return the cost associated with an output ``a`` and desired output ``y``. Note that np.nan_to_num is used to ensure numerical stability. In particular, if both ``a`` and ``y`` have a 1.0 in the same slot, then the expression (1-y)*np.log(1-a) returns nan. The n

(a, y)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected