Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poisson predict breaks on list #1032

Closed
josef-pkt opened this issue Aug 9, 2013 · 0 comments · Fixed by #1254
Closed

Poisson predict breaks on list #1032

josef-pkt opened this issue Aug 9, 2013 · 0 comments · Fixed by #1254

Comments

@josef-pkt
Copy link
Member

running an example with Poisson
mod = sm.Poisson(count, ex)

>>> res.predict(exog=[1, 1, 0, 0], linear=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2\statsmodels\statsmodels\base\model.py", line 880, in predict
    return self.model.predict(self.params, exog, *args, **kwargs)
  File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2\statsmodels\statsmodels\discrete\discrete_model.py", line 682, in predict
    return np.exp(np.dot(exog, params[:exog.shape[1]]) + exposure + offset) # not cdf
AttributeError: 'list' object has no attribute 'shape'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant