# HG changeset patch # User desjagui@atchoum.iro.umontreal.ca # Date 1236784409 14400 # Node ID 070a7d68d3a1aba28a8a7463ae3ef0df94facfd5 # Parent 576eb7f77c35f249278b950fb5a8bb7884aa39dc Changed RModule to deprecated.RModule .... temporarily until they are fixed with the new RandomStreams diff -r 576eb7f77c35 -r 070a7d68d3a1 pylearn/algorithms/daa.py --- a/pylearn/algorithms/daa.py Wed Mar 11 00:09:22 2009 -0400 +++ b/pylearn/algorithms/daa.py Wed Mar 11 11:13:29 2009 -0400 @@ -2,11 +2,13 @@ import theano from theano import tensor as T from theano.tensor import nnet as NN +from theano.tensor.deprecated import rmodule + import numpy as N -from pylearn import cost as cost +from pylearn.algorithms import cost -class DenoisingAA(T.RModule): +class DenoisingAA(rmodule.RModule): """De-noising Auto-encoder WRITEME diff -r 576eb7f77c35 -r 070a7d68d3a1 pylearn/algorithms/rbm.py --- a/pylearn/algorithms/rbm.py Wed Mar 11 00:09:22 2009 -0400 +++ b/pylearn/algorithms/rbm.py Wed Mar 11 11:13:29 2009 -0400 @@ -1,6 +1,7 @@ import sys, copy import theano from theano import tensor as T +from theano.tensor.deprecated import rmodule from theano.tensor.nnet import sigmoid from theano.compile import module from theano import printing, pprint @@ -12,7 +13,7 @@ from .minimizer import make_minimizer from .stopper import make_stopper -class RBM(T.RModule): +class RBM(rmodule.RModule): # is it really necessary to pass ALL of these ? - GD def __init__(self, diff -r 576eb7f77c35 -r 070a7d68d3a1 pylearn/algorithms/stacker.py --- a/pylearn/algorithms/stacker.py Wed Mar 11 00:09:22 2009 -0400 +++ b/pylearn/algorithms/stacker.py Wed Mar 11 11:13:29 2009 -0400 @@ -7,10 +7,11 @@ import theano from theano import tensor as T +from theano.tensor.deprecated import rmodule import sys import numpy as N -class Stacker(T.RModule): +class Stacker(rmodule.RModule): """ @note: Assumes some names in the layers: input, cost, lr, and update @todo: Maybe compile functions on demand, rather than immediately.