Mercurial > ift6266
diff 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 |
line wrap: on
line diff
--- a/transformations/affine_transform.py Thu Feb 18 11:10:53 2010 -0500 +++ b/transformations/affine_transform.py Thu Feb 18 12:33:17 2010 -0500 @@ -19,12 +19,12 @@ self.rng = numpy.random.RandomState() self.complexity = complexity params = self.rng.uniform(size=6) -.5 - self.a = 1. + params[0]*.8*complexity - self.b = 0. + params[1]*.8*complexity - self.c = params[2]*9.*complexity - self.d = 0. + params[3]*.8*complexity - self.e = 1. + params[4]*.8*complexity - self.f = params[5]*9.*complexity + self.a = 1. + params[0]*.6*complexity + self.b = 0. + params[1]*.6*complexity + self.c = params[2]*8.*complexity + self.d = 0. + params[3]*.6*complexity + self.e = 1. + params[4]*.6*complexity + self.f = params[5]*8.*complexity def _get_current_parameters(self):