allenai / pnp

Probabilistic Neural Programming
Apache License 2.0
75 stars 22 forks source link

create `PnpInferenceState` with logprob and scores, implement (one-shot) sampling #35

Closed joelgrus closed 7 years ago

joelgrus commented 7 years ago

Create new object PnpInferenceContext that contains

and change everything to use it.

Also, the one-shot sampling should be working correctly. After this PR I'll take a stab at the particle-filter version.

joelgrus commented 7 years ago

ok, I think this version is more what you had in mind, let me know how you feel about it