changeset 234:9504940ef5ef

Automated merge with ssh://projects@lgcm.iro.umontreal.ca/hg/pylearn
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 27 May 2008 15:59:24 -0400
parents c047238e5b3f (current diff) 9e96fe8b955c (diff)
children a70f2c973ea5 6aff510792dd
files
diffstat 2 files changed, 1 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/denoising_aa.py	Tue May 27 15:49:09 2008 -0400
+++ b/denoising_aa.py	Tue May 27 15:59:24 2008 -0400
@@ -9,6 +9,7 @@
 from nnet_ops import *
 import math
 from misc import *
+from misc_theano import *
 from theano.tensor_random import binomial
 
 def hiding_corruption_formula(seed,average_fraction_hidden):
--- a/misc.py	Tue May 27 15:49:09 2008 -0400
+++ b/misc.py	Tue May 27 15:59:24 2008 -0400
@@ -1,24 +1,3 @@
-
-import theano
-
-class Print(theano.Op):
-    def __init__(self,message=""):
-        self.message=message
-        self.view_map={0:[0]}
-
-    def make_node(self,xin):
-        xout = xin.type.make_result()
-        return theano.Apply(op = self, inputs = [xin], outputs=[xout])
-
-    def perform(self,node,inputs,output_storage):
-        xin, = inputs
-        xout, = output_storage
-        xout[0] = xin
-        print self.message,xin
-
-    def grad(self,input,output_gradients):
-        return output_gradients
-
 
 def unique_elements_list_intersection(list1,list2):
     """