comparison algorithms/daa.py @ 512:da916044454c

added useless comments
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 30 Oct 2008 19:39:10 -0400
parents c7ce66b4e8f4
children dc2d93590da0
comparison
equal deleted inserted replaced
509:6fe692b93b69 512:da916044454c
5 import numpy as N 5 import numpy as N
6 6
7 from pylearn import cost as cost 7 from pylearn import cost as cost
8 8
9 class DenoisingAA(T.RModule): 9 class DenoisingAA(T.RModule):
10 """De-noising Auto-encoder
11
12 WRITEME
13
14 Abstract base class. Requires subclass with functions:
15
16 - build_corrupted_input()
17
18 Introductory article about this model WRITEME.
19
20
21 """
10 22
11 def __init__(self, input = None, regularize = True, tie_weights = True, 23 def __init__(self, input = None, regularize = True, tie_weights = True,
12 activation_function=NN.sigmoid, reconstruction_cost_function=cost.cross_entropy): 24 activation_function=NN.sigmoid, reconstruction_cost_function=cost.cross_entropy):
13 """ 25 """
14 @param reconstruction_cost: Should return one cost per example (row) 26 :param input: WRITEME
15 @todo: Default noise level for all daa levels 27
28 :param regularize: WRITEME
29
30 :param tie_weights: WRITEME
31
32 :param activation_function: WRITEME
33
34 :param reconstruction_cost: Should return one cost per example (row)
35
36 :todo: Default noise level for all daa levels
37
16 """ 38 """
17 super(DenoisingAA, self).__init__() 39 super(DenoisingAA, self).__init__()
18 40
19 # MODEL CONFIGURATION 41 # MODEL CONFIGURATION
20 self.regularize = regularize 42 self.regularize = regularize