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

Constraints over anonymous variables are not parsed #93

Closed
wouterwln opened this issue Jul 5, 2023 · 1 comment · Fixed by #127
Closed

Constraints over anonymous variables are not parsed #93

wouterwln opened this issue Jul 5, 2023 · 1 comment · Fixed by #127
Assignees
Milestone

Comments

@wouterwln
Copy link
Member

Let's say we have the following example:

@model function test_model(a, b, c)
    x ~ Gamma(b = b, c = sqrt(c))
    a ~ Normal(x, 1)
end

we cannot specify any constraint around this Gamma node since in the internal representation c is not connected to it (c is connected to a sqrt node, which spawns an anonymous variable that is actually connected to the Gamma node. I currently also have no inspiration on how to solve this efficiently. Probably after refactoring the constraints to a more efficient algorithm a path will open.

@wouterwln wouterwln self-assigned this Jul 5, 2023
@wouterwln wouterwln added this to the 4.0 milestone Nov 3, 2023
@wouterwln wouterwln linked a pull request Nov 9, 2023 that will close this issue
@wouterwln
Copy link
Member Author

@bvdmitri this can be closed, right?

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

Successfully merging a pull request may close this issue.

2 participants