layered.cost module¶
-
class
SquaredError[source]¶ Bases:
layered.cost.CostFast and simple cost function.
-
class
CrossEntropy(epsilon=1e-11)[source]¶ Bases:
layered.cost.CostLogistic cost function used for classification tasks. Learns faster in the beginning than SquaredError because large errors are penalized exponentially. This makes sense in classification since only the best class will be the predicted one.