6eddfdb1d05359bb55b07060553d8e59310f8aa8,tests/test_bql.py,,test_using_models,#,1380

Before Change


        bql2sql("estimate pairwise mutual information from t1 using model 1")
    with pytest.raises(NotImplementedError):
        bql2sql("estimate pairwise row similarity from t1 using model 1")
    with pytest.raises(NotImplementedError):
        bql2sql("infer x, y from t1 using model 1")
    with pytest.raises(NotImplementedError):
        bql2sql("infer explicit x, y from t1 using model 1")

After Change


    def setup(bdb):
        bdb.execute("initialize 1 model for t1_cc")
        bdb.execute("analyze t1_cc for 1 iteration wait")
    assert bql2sql("simulate age, weight from t1_cc using model 0"
            " limit 1", setup=setup) == \
        "SELECT * FROM "bayesdb_temp_0";"
    assert bql2sql("estimate predictive probability of weight from t1_cc"
            " using model 42") == \
        "SELECT bql_row_column_predictive_probability(1, 42, _rowid_, 3)" \
            " FROM "t1";"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: probcomp/bayeslite
Commit Name: 6eddfdb1d05359bb55b07060553d8e59310f8aa8
Time: 2015-05-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_bql.py
Class Name:
Method Name: test_using_models


Project Name: probcomp/bayeslite
Commit Name: 9e5cf64a877986a44c26dd45fc638c51c19cfbca
Time: 2016-01-08
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_bql.py
Class Name:
Method Name: test_estimate_pairwise_trivial


Project Name: probcomp/bayeslite
Commit Name: c0fa4b2ff59b6048ac20e33b7940c677ea723f97
Time: 2015-01-02
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_bql.py
Class Name:
Method Name: test_select_bql


Project Name: probcomp/bayeslite
Commit Name: 58c667e1ad18f2b247f857860269fb5da68e9936
Time: 2015-06-02
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_bql.py
Class Name:
Method Name: test_estimate_columns_trivial