Skip to content

Error running /examples/lasso_missing.py #2417

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

Closed
junpenglao opened this issue Jul 14, 2017 · 2 comments
Closed

Error running /examples/lasso_missing.py #2417

junpenglao opened this issue Jul 14, 2017 · 2 comments
Labels

Comments

@junpenglao
Copy link
Member

Traceback (most recent call last):

  File "<ipython-input-2-4c84dcf98240>", line 20, in <module>
    observed=masked_values(siblings, value=-999))

  File "/home/laoj/Documents/Github/pymc3/pymc3/distributions/distribution.py", line 36, in __new__
    return model.Var(name, dist, data, total_size)

  File "/home/laoj/Documents/Github/pymc3/pymc3/model.py", line 545, in Var
    total_size=total_size, model=self)

  File "/home/laoj/Documents/Github/pymc3/pymc3/model.py", line 977, in __init__
    data = as_tensor(data, name, model, distribution)

  File "/home/laoj/Documents/Github/pymc3/pymc3/model.py", line 932, in as_tensor
    model=model)

  File "/home/laoj/Documents/Github/pymc3/pymc3/model.py", line 878, in __init__
    distribution.shape, distribution.dtype) * distribution.default()

ValueError: operands could not be broadcast together with shapes (0,) (0,207) 

It was fine last time I check (#2254) so likely due to recently introduced changes.

@junpenglao junpenglao changed the title Error running Lasso Error running /examples/lasso_missing.py Jul 14, 2017
@junpenglao junpenglao added the bug label Jul 14, 2017
@junpenglao
Copy link
Member Author

oops I accidentally pushed to master directly... @twiecki should I reverse and PR properly?

@twiecki
Copy link
Member

twiecki commented Jul 14, 2017

That's fine for a small fix like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants