Mercurial > ift6266
comparison transformations/DistorsionGauss.py @ 112:1b315470a566
Changed the variance factor of the distorsion gauss from /10 to /15 (to have a bit less noise)
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Tue, 16 Feb 2010 18:55:51 -0500 |
parents | 901ab3329064 |
children | c9d680d9a908 |
comparison
equal
deleted
inserted
replaced
111:259439a4f9e7 | 112:1b315470a566 |
---|---|
25 | 25 |
26 def get_settings_names_determined_by_complexity(self,complexity): | 26 def get_settings_names_determined_by_complexity(self,complexity): |
27 return ['ecart_type'] | 27 return ['ecart_type'] |
28 | 28 |
29 def regenerate_parameters(self, complexity): | 29 def regenerate_parameters(self, complexity): |
30 self.ecart_type=float(complexity)/10 | 30 self.ecart_type=float(complexity)/15 |
31 self.effectuer =numpy.random.binomial(1,0.3) ##### On a 30% de faire un bruit ##### | 31 self.effectuer =numpy.random.binomial(1,0.3) ##### On a 30% de faire un bruit ##### |
32 return self._get_current_parameters() | 32 return self._get_current_parameters() |
33 | 33 |
34 def _get_current_parameters(self): | 34 def _get_current_parameters(self): |
35 return [self.effectuer] | 35 return [self.effectuer] |