da13077ee7328382e04fc2cfa5aec6acaf25155d,src/metamodels/crosscat.py,CrosscatMetamodel,_crosscat_get_rows,#CrosscatMetamodel#Any#Any#Any#Any#Any#,355
Before Change
rowids = sorted(set(index.keys()))
table_name = core.bayesdb_generator_table(bdb, generator_id)
qt = sqlite3_quote_name(table_name)
modelled_column_names = \
core.bayesdb_generator_column_names(bdb, generator_id)
qcns = ",".join(map(sqlite3_quote_name, modelled_column_names))
qrowids = ",".join("%d" % (rowid,) for rowid in rowids)
M_c = self._crosscat_metadata(bdb, generator_id)
cursor = bdb.sql_execute("""
SELECT %s FROM %s WHERE _rowid_ IN (%s) ORDER BY _rowid_ ASC
After Change
AND gc.generator_id = g.id
ORDER BY c.colno ASC
""", (generator_id,)).fetchall()
qexpressions = ",".join("CAST(%s AS %s)" %
(sqlite3_quote_name(name),
sqlite3_quote_name(core.bayesdb_stattype_affinity(bdb,
stattype)))
for name, _colno, stattype in columns)
qrowids = ",".join("%d" % (rowid,) for rowid in rowids)
M_c = self._crosscat_metadata(bdb, generator_id)
cursor = bdb.sql_execute("""
SELECT %s FROM %s WHERE _rowid_ IN (%s) ORDER BY _rowid_ ASC
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: probcomp/bayeslite
Commit Name: da13077ee7328382e04fc2cfa5aec6acaf25155d
Time: 2016-01-19
Author: riastradh+probcomp@csail.mit.edu
File Name: src/metamodels/crosscat.py
Class Name: CrosscatMetamodel
Method Name: _crosscat_get_rows
Project Name: probcomp/bayeslite
Commit Name: 646a9919d55f25e271303f7d0789bbfa861855a9
Time: 2017-12-19
Author: fsaad@mit.edu
File Name: src/backends/cgpm_backend.py
Class Name: CGPM_Backend
Method Name: _data
Project Name: probcomp/bayeslite
Commit Name: da13077ee7328382e04fc2cfa5aec6acaf25155d
Time: 2016-01-19
Author: riastradh+probcomp@csail.mit.edu
File Name: src/metamodels/crosscat.py
Class Name: CrosscatMetamodel
Method Name: _crosscat_data