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

Implement REGRESS #548

Closed fsaad closed 7 years ago

fsaad commented 7 years ago
REGRESS <target> GIVEN <*|vars|subexp> [USING <k> SAMPLES]
BY <population> [MODELED BY <metamodel>]

Returns a table with two columns -- the first column is the variable name (or category for a nominal stattype) and the second column is the regression coefficient.

riastradh-probcomp commented 7 years ago

Why a whole new kind of query instead of simply an expression composed within a query?

fsaad commented 7 years ago

REGRESS returns two columns, so its behavior is different than those functions which already exist in e.g. bqlfn or other BQL estimators, instead it behaves similarly to GUESS SCHEMA FOR <table>

riastradh-probcomp commented 7 years ago

Done in ebf0339cc557dc6a63902fbfe1ad7e01510fe9fa.