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

Add support for unnamed ``implicit'' populations and generators #596

Closed fsaad closed 6 years ago

fsaad commented 6 years ago

As a midway point between (i) having a table, population, and generator be identified by a single name to reduce the number of names that an end user needs to know about (in the most common case), and (ii) keeping the full generality of multi-population tables and multi-generator populations that is implemented throughout bayeslite (see #588 for full details), I propose implementing ``implicit'' populations and generators, which are created in the following way:

CREATE TABLE satellites FROM 'satellites.csv';
CREATE POPULATION FOR satellites (GUESS STATTYPES OF (*));
CREATE GENERATOR FOR satellites USING loom (<modeling>);

In this workflow, the user only specified the name ''satellites'' of the base table, and created a population and generator without creating new names. Therefore, the user need not manage multiple names such as ''satellites'', ''satellites_p'', and ''satellites_cc''.

fsaad commented 6 years ago

03cdd762796dc824ec8606c8f1af671205ea8cb3