You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Power link is not allowed (why not?) self.fitted is not defined
doesn't take into account that scale is an argument and can be fixed different from MLE
if isinstance(self.link, L.Power) and self.link.power == 1:
# This is just the loglikelihood for classical OLS
nobs2 = Y.shape[0]/2.
SSR = ss(Y-self.fitted(mu))
llf = -np.log(SSR) * nobs2
llf -= (1+np.log(np.pi/nobs2))*nobs2
return llf
Fixed as part of PR #3856 (the same PR that fixed several other GLM scale/loglike issues): Gaussian.loglike_obs was fully rewritten with no self.fitted reference and no power-link special case. Closing as fixed.
Activity
josef-pkt commentedon Apr 18, 2018
pushing this off to 0.10
see old PR #1880 to optionally skip valid link check, will need changes to new families, I guess, i.e. Tweedie.
also: the DomainWarning for the link is in
GLM.__init__. I think it should also go intoFamily._setlinkbashtage commentedon Jul 30, 2026
Fixed as part of PR #3856 (the same PR that fixed several other GLM scale/loglike issues): Gaussian.loglike_obs was fully rewritten with no self.fitted reference and no power-link special case. Closing as fixed.