layered.cost module¶
-
class
SquaredError
[source]¶ Bases:
layered.cost.Cost
Fast and simple cost function.
-
class
CrossEntropy
(epsilon=1e-11)[source]¶ Bases:
layered.cost.Cost
Logistic 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.