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

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

Open
ricardoV94 opened this issue Oct 12, 2024 · 4 comments

Comments

@ricardoV94
Copy link
Member

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))
@lucifer4073
Copy link

I believe this issue has been resolved.

@ricardoV94
Copy link
Member Author

I believe this issue has been resolved.

How so?

@lucifer4073
Copy link

I ran the above code, it's giving the desired output. Is there something else that needs to be addressed?

@ricardoV94
Copy link
Member Author

ricardoV94 commented Dec 23, 2024

The desired output should show that f is a function of x and y, not just y.

And there should be an entry for x

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

No branches or pull requests

2 participants