probcomp / PClean

A domain-specific probabilistic programming language for scalable Bayesian data cleaning
216 stars 32 forks source link

Refactor "preferred values" implementation #8

Open alex-lew opened 3 years ago

alex-lew commented 3 years ago

Currently some distributions support "preferred values" as an extra argument, and the distribution interface allows the distribution to decide its own enumerative proposal. This could probably be refactored to avoid having so much repeated code across distributions.