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
The perfect prediction check in DiscreteModel ignores offset (new enhancement) and code uses properties that apply only for binary models, Logit and Probit.
If we would check for perfect prediction in countmodels like Poisson, then we would also need to include exposure.
def _check_perfect_pred(self, params, *args):
endog = self.endog
fittedvalues = self.cdf(np.dot(self.exog, params[:self.exog.shape[1]]))
if (self.raise_on_perfect_prediction and
np.allclose(fittedvalues - endog, 0)):
msg = "Perfect separation detected, results not available"
raise PerfectSeparationError(msg)
I guess currently this method is only called by binary models.
The text was updated successfully, but these errors were encountered:
while browsing and skimming some code
The perfect prediction check in DiscreteModel ignores offset (new enhancement) and code uses properties that apply only for binary models, Logit and Probit.
If we would check for perfect prediction in countmodels like Poisson, then we would also need to include exposure.
I guess currently this method is only called by binary models.
The text was updated successfully, but these errors were encountered: