comparison linear_regression.py @ 432:8e4d2ebd816a

added a test for LinearRegression
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Tue, 29 Jul 2008 11:16:05 -0400
parents 0f8c81b0776d
children 111e547ffa7b
comparison
equal deleted inserted replaced
431:0f8c81b0776d 432:8e4d2ebd816a
2 Implementation of linear regression, with or without L2 regularization. 2 Implementation of linear regression, with or without L2 regularization.
3 This is one of the simplest example of L{learner}, and illustrates 3 This is one of the simplest example of L{learner}, and illustrates
4 the use of theano. 4 the use of theano.
5 """ 5 """
6 6
7 from pylearn.learner import OfflineLearningAlgorithm 7 from pylearn.learner import OfflineLearningAlgorithm,OnlineLearningAlgorithm
8 from theano import tensor as T 8 from theano import tensor as T
9 from nnet_ops import prepend_1_to_each_row 9 from nnet_ops import prepend_1_to_each_row
10 from theano.scalar import as_scalar 10 from theano.scalar import as_scalar
11 from common.autoname import AutoName 11 from common.autoname import AutoName
12 import theano 12 import theano