Skip to content

Textual representation of the model does not show Data variables or dependency on them #7536

Open
@ricardoV94

Description

@ricardoV94

Description

import pymc as pm
from pymc.printing import str_for_model

with pm.Model() as m:
    x = pm.Data("x", 0)
    y = pm.Normal("y")
    f = pm.Deterministic("f", x + y)
    
str_for_model(m)
# y ~ Normal(0, 1)
# f ~ Deterministic(f(y))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions