comparison transformations/DistorsionGauss.py @ 117:c9d680d9a908

changed again the variance scaling for Distorsion Gauss, come back to the original
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Wed, 17 Feb 2010 16:23:54 -0500
parents 1b315470a566
children 8008f4d31869
comparison
equal deleted inserted replaced
116:3bec123dd75d 117:c9d680d9a908
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)/15 30 self.ecart_type=float(complexity)/10
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]