comparison transformations/affine_transform.py @ 124:b852dddf43a6

reduced affine transform coefficient
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 18 Feb 2010 12:33:17 -0500
parents 5e00ed18ae32
children ce56e8ca960d
comparison
equal deleted inserted replaced
123:999bf84ddec6 124:b852dddf43a6
17 def __init__( self, complexity = .5): 17 def __init__( self, complexity = .5):
18 self.shape = (32,32) 18 self.shape = (32,32)
19 self.rng = numpy.random.RandomState() 19 self.rng = numpy.random.RandomState()
20 self.complexity = complexity 20 self.complexity = complexity
21 params = self.rng.uniform(size=6) -.5 21 params = self.rng.uniform(size=6) -.5
22 self.a = 1. + params[0]*.8*complexity 22 self.a = 1. + params[0]*.6*complexity
23 self.b = 0. + params[1]*.8*complexity 23 self.b = 0. + params[1]*.6*complexity
24 self.c = params[2]*9.*complexity 24 self.c = params[2]*8.*complexity
25 self.d = 0. + params[3]*.8*complexity 25 self.d = 0. + params[3]*.6*complexity
26 self.e = 1. + params[4]*.8*complexity 26 self.e = 1. + params[4]*.6*complexity
27 self.f = params[5]*9.*complexity 27 self.f = params[5]*8.*complexity
28 28
29 29
30 def _get_current_parameters(self): 30 def _get_current_parameters(self):
31 return [self.a, self.b, self.c, self.d, self.e, self.f] 31 return [self.a, self.b, self.c, self.d, self.e, self.f]
32 32