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
922 stars 64 forks source link

Refactor all "metamodels" to return a list of answers, one per model, rather than aggregation. #488

Closed fsaad closed 7 years ago

fsaad commented 7 years ago

All aggregation over cgpms in a metamodel should be implemented by the BQL interpreter. The interface for IBayesDBMetmaodel should thus return a list of answers, rather than a single answer. This interface allows us to

Tasks:

fsaad commented 7 years ago

The bulk of the work for this ticket has been implemented in 4d6e0ce176538f5c5c939e8fbcd5438d116a0667

We still need to implement these stubs https://github.com/probcomp/bayeslite/blob/master/src/bql.py#L845-L851 although those are now separate smaller tickets.