

@pytest.mark.parametrize('exname,rowid,colno', [(exname, rowid, colno) for exname in examples.keys() for rowid in range(4) for colno in range(1, 3)])
def test_row_column_predictive_probability(exname, rowid, colno):
    if ((exname == 't0') and (colno > 1)):
        pytest.skip('Not enough columns in t0.')
    if (exname.startswith('t1_sub') and (colno > 1)):
        pytest.skip(('Not enough columns in %s.' % (exname,)))
    with analyzed_bayesdb_generator(examples[exname](), 1, 1) as (bdb, generator_id):
        if (rowid == 0):
            rowid = bayesdb_maxrowid(bdb, generator_id)
        bqlfn.bql_row_column_predictive_probability(bdb, generator_id, None, generator_id, colno)
        sql = 'select bql_row_column_predictive_probability(?, NULL, ?, ?)'
        bdb.sql_execute(sql, (generator_id, rowid, colno)).fetchall()

dataset/ETHPy150Open probcomp/bayeslite/tests/test_core.py test_row_column_predictive_probability/VarMisuse@168/259 `rowid`->`generator_id`