probcomp / bayeslite

BayesDB on SQLite. A Bayesian database table for querying the probable implications of data as easily as SQL databases query the data itself.
http://probcomp.csail.mit.edu/software/bayesdb
Apache License 2.0
918 stars 64 forks source link

Enable arbitrary dependence constraints for ALTER GENERATOR with cgpm_backend #592

Open fsaad opened 6 years ago

fsaad commented 6 years ago

The phrase

alter generator g0
                ensure variables <vars> dependent;

will currently fail unless <vars> is *, since earlier implementations of the CrossCat inference algorithm with (in)dependence constraints failed to correctly account for ergodicity issues, see https://github.com/probcomp/crosscat/issues/76.

However, recent patches to cgpm/lovecat fixed this issue and support arbitrary dependence constraints with correct inference algorithm ensuring ergodicity of the MCMC chain (independence constraints are still tricky to handle formally and therefore will remain disabled for now).