Skip to content

Nutpie fails to sample when RV changes shape following with_data #267

@ricardoV94

Description

@ricardoV94
import pymc as pm
import nutpie

with pm.Model() as model:
    x = pm.Data('x', [0,1,2])
    beta = pm.Normal('beta', mu=0, sigma=1)
    y = pm.Normal("y", mu=beta * x, sigma=1)   # fine if it's observed and we also change it's data

compiled_model = nutpie.compile_pymc_model(model)

compiled_model_set = compiled_model.with_data(x=[1,2])
nutpie.sample(compiled_model_set, chains=1)
# RuntimeError: All initialization points failed

# Caused by:
#     Logp function returned error: ErrorCode(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions