Skip to content

Commit aa4af50

Browse files
committed
adjust deviance residuals
1 parent a6fc07a commit aa4af50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/python/distributions/tweedie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _log_prob(self, x):
102102
theta = (tf.pow(x1, 1 - self.p) - tf.pow(self.loc, 1 - self.p)) / (1 - self.p)
103103
kappa = (tf.pow(x, 2 - self.p) - tf.pow(self.loc, 2 - self.p)) / (2 - self.p)
104104

105-
return - 1 * tf.pow(x * theta - kappa, 2)
105+
return - 2 * (x * theta - kappa)
106106

107107

108108
def _mean(self):

0 commit comments

Comments
 (0)