# HG changeset patch # User Frederic Bastien # Date 1226698710 18000 # Node ID 05f802184606ac9daca6042d579008fd780c7364 # Parent 2bef0768bc27e3e6871e027dcfc461b3364b89e5 modif source of ops as they where moved. diff -r 2bef0768bc27 -r 05f802184606 kernel_regression.py --- a/kernel_regression.py Fri Nov 14 16:37:51 2008 -0500 +++ b/kernel_regression.py Fri Nov 14 16:38:30 2008 -0500 @@ -4,16 +4,16 @@ from pylearn.learner import OfflineLearningAlgorithm from theano import tensor as T -from nnet_ops import prepend_1_to_each_row +from theano.tensor.nnet import prepend_1_to_each_row from theano.scalar import as_scalar from common.autoname import AutoName import theano import numpy # map a N-vector to a 1xN matrix -row_vector = theano.elemwise.DimShuffle((False,),['x',0]) +row_vector = theano.tensor.DimShuffle((False,),['x',0]) # map a N-vector to a Nx1 matrix -col_vector = theano.elemwise.DimShuffle((False,),[0,'x']) +col_vector = theano.tensor.DimShuffle((False,),[0,'x']) class KernelRegression(OfflineLearningAlgorithm): """