Exemplo n.º 1
0
 def _scale_to_tanh(self, x):
     # np.arctanh(np.tanh(np.arctanh(1.0 - 1e-6) + 10.0)) == 17.242754385535303
     bound = 1.0 - 1e-6
     return scale(x, -bound, bound, self.model.x_min, self.model.x_max)
Exemplo n.º 2
0
 def _scale_to_model(self, x):
     return scale(x, self.model.x_min, self.model.x_max, -1.0, 1.0)