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

How are probabilistic programs specified? #104

Open
thelogicalgrammar opened this issue Oct 20, 2022 · 1 comment
Open

How are probabilistic programs specified? #104

thelogicalgrammar opened this issue Oct 20, 2022 · 1 comment

Comments

@thelogicalgrammar
Copy link

I was wondering if there's any description / hints anywhere on how to define probabilistic rather than deterministic programs. For instance, how would we go about adding a flip stochastic primitive to the incr example from the documentation? Any help appreciated & thank you in advance!

@ManuelEberhardinger
Copy link

ManuelEberhardinger commented Dec 17, 2022

I was also thinking about using DreamCoder with probabilistic programming. I haven't started with implementing something for this but you would need to implement your own domain specific language which includes those probabilistic primitives.

Another point to consider is how your input and output example will look like. I think you can't use the default mechanism in DreamCoder which checks which tasks were solved because of the probabilistic components of the program, which can lead to different answers when executing it.

Did you start working on this?

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

No branches or pull requests

2 participants