c35829c9a7624fe9722543fb874d0aa2a7b8fb61,pyglmnet/pyglmnet.py,,_logL,#,127
Before Change
logL = np.sum(nu * (-y / y_hat - np.log(y_hat)))
elif distr == "neg-binomial":
r = 15.
C = np.sum(loggamma(y + r) - loggamma(y + 1) -
loggamma(r) + r * np.log(r))
logL = C - np.sum(np.log(y_hat + r) * (y_hat + r) + y * np.log(y_hat))
return logL
After Change
logL = np.sum(nu * (-y / y_hat - np.log(y_hat)))
elif distr == "neg-binomial":
r = 15.
logL = np.sum(loggamma(y + r) + r * np.log(r) + y * np.log(y_hat) - loggamma(y + 1) -
loggamma(r) - np.log(y_hat + r) * (y + r))
return logL
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: glm-tools/pyglmnet
Commit Name: c35829c9a7624fe9722543fb874d0aa2a7b8fb61
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _logL
Project Name: glm-tools/pyglmnet
Commit Name: f28d18c550b4edc85e0573fd086234853d1a34b0
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _logL