comparison mlp.py @ 132:f6505ec32dc3

Updated documentation slightly
author Joseph Turian <turian@gmail.com>
date Thu, 08 May 2008 00:54:14 -0400
parents 4c2280edcaf5
children b4657441dd65
comparison
equal deleted inserted replaced
131:57e6492644ec 132:f6505ec32dc3
1 """
2 A straightforward classicial feedforward
3 one-hidden-layer neural net, with L2 regularization.
4 This is one of the simplest example of L{Learner}, and illustrates
5 the use of theano.
6 """
1 7
2 from learner import * 8 from learner import *
3 from theano import tensor as t 9 from theano import tensor as t
4 from nnet_ops import * 10 from nnet_ops import *
5
6 # this is one of the simplest example of learner, and illustrates
7 # the use of theano
8 11
9 12
10 class OneHiddenLayerNNetClassifier(OnlineGradientTLearner): 13 class OneHiddenLayerNNetClassifier(OnlineGradientTLearner):
11 """ 14 """
12 Implement a straightforward classicial feedforward 15 Implement a straightforward classicial feedforward