Mercurial > pylearn
changeset 435:eac0a7d44ff0
merge
author | Olivier Breuleux <breuleuo@iro.umontreal.ca> |
---|---|
date | Mon, 04 Aug 2008 16:29:30 -0400 |
parents | 0f366ecb11ee (diff) 200a5b0e24ea (current diff) |
children | d7ed780364b3 |
files | gradient_learner.py sandbox/simple_autoassociator/globals.py statscollector.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)