Mercurial > pylearn
changeset 1407:f467c5457eff
merge
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Fri, 28 Jan 2011 10:58:45 -0500 |
parents | 6003f733a994 (current diff) f9e4d71aa353 (diff) |
children | 2993b2a5c1af |
files | |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pylearn/shared/layers/sigmoidal_layer.py Tue Jan 25 04:16:33 2011 -0500 +++ b/pylearn/shared/layers/sigmoidal_layer.py Fri Jan 28 10:58:45 2011 -0500 @@ -20,6 +20,8 @@ :param squash: an squashing function """ output = squash_fn(tensor.dot(input, w) + b) + l1 = abs(w).sum() + l2_sqr = (w**2).sum() update_locals(self, locals()) @classmethod