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

Comments

Projects
None yet
1 participant
@josef-pkt
Copy link
Member

commented Aug 9, 2013

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
You can’t perform that action at this time.