def geweke_kl_samples(bdb, metamodel_name, schema, column_names, target_cells,
        prior_samples, geweke_samples, geweke_iterates, kl_samples):
    target_metamodel = bdb.metamodels[metamodel_name]
    prior_gen = create_prior_gen(bdb, target_metamodel, schema, column_names, \
        prior_samples)
    geweke_chain_gen = create_geweke_chain_gen(bdb, target_metamodel, schema, \
        column_names, target_cells, geweke_samples, geweke_iterates)
    return [kl_est_sample(prior_gen, geweke_chain_gen, target_cells, [])
            for _ in range(kl_samples)]
The raw samples for a Geweke K-L estimate.
dataset/ETHPy150Open probcomp/bayeslite/src/geweke_testing.py/geweke_kl_samples