Exemplo n.º 1
0
 def backward(self, indexes, gy):
     x = self.get_retained_inputs()[0]
     return (2 * numpy.pi) ** -0.5 * exponential.exp(-0.5 * x ** 2) \
         / ndtr.ndtr(x) * gy[0],
Exemplo n.º 2
0
 def cdf(self, x):
     return ndtr.ndtr((x - self.loc) / self.scale)
Exemplo n.º 3
0
 def survival_function(self, x):
     return ndtr.ndtr((self.loc - x) / self.scale)
Exemplo n.º 4
0
 def cdf(self, x):
     return ndtr.ndtr((x - self.loc) / self.scale)
Exemplo n.º 5
0
 def survival_function(self, x):
     return ndtr.ndtr((self.loc - x) / self.scale)
Exemplo n.º 6
0
 def backward(self, indexes, gy):
     x = self.get_retained_inputs()[0]
     return (2 * numpy.pi) ** -0.5 * exponential.exp(-0.5 * x ** 2) \
         / ndtr.ndtr(x) * gy[0],