# HG changeset patch # User Olivier Breuleux # Date 1217881770 14400 # Node ID eac0a7d44ff075bc31ed483eaf4681512ee37963 # Parent 0f366ecb11ee6f862c89dab2d3f9d2ca3b4f99fd# Parent 200a5b0e24ea93527b433e65c6fdf719487c66b9 merge diff -r 200a5b0e24ea -r eac0a7d44ff0 cost.py --- a/cost.py Thu Jul 31 17:25:35 2008 -0400 +++ b/cost.py Mon Aug 04 16:29:30 2008 -0400 @@ -8,4 +8,4 @@ return T.mean(T.sqr(target - output), axis) def cross_entropy(target, output, axis=1): - return -T.mean(target * T.log2(output) + (1 - target) * T.log2(1 - output), axis=axis) + return -T.mean(target * T.log(output) + (1 - target) * T.log(1 - output), axis=axis)