Beispiel #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],
Beispiel #2
0
 def cdf(self, x):
     return ndtr.ndtr((x - self.loc) / self.scale)
Beispiel #3
0
 def survival_function(self, x):
     return ndtr.ndtr((self.loc - x) / self.scale)
Beispiel #4
0
 def cdf(self, x):
     return ndtr.ndtr((x - self.loc) / self.scale)
Beispiel #5
0
 def survival_function(self, x):
     return ndtr.ndtr((self.loc - x) / self.scale)
Beispiel #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],