Skip to content

Commit

Permalink
Remove print statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyfertig committed Oct 4, 2024
1 parent 4655061 commit 52083f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion cxx/emissions/bigram_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ std::string BigramStringEmission::propose_clean_with_weights(
// voters than with two.
if (corrupted.empty()) {
printf("Warning! propose_clean called with empty corrupted list\n");
assert(false);
return "";
}
if (corrupted.size() == 1) {
Expand Down
14 changes: 0 additions & 14 deletions cxx/inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,10 @@ void inference_hirm(std::mt19937* prng, HIRM* hirm, int iters, int timeout,
hirm->logp_score());
CHECK_TIMEOUT(timeout, t_begin);
// TRANSITION LATENT VALUES.
auto f = [&](auto r) {
auto data = r->get_data();
for (auto [it, v] : data) {
std::cerr << "items " << std::endl;
for (int i : it) {
std::cerr << i << " ";
std::cerr << std::endl;
}
std::cerr << "value " << v << std::endl;
}
};
std::visit(f, hirm->get_relation("Time:time"));
hirm->transition_latent_values_relation(prng, "Time:time");
for (const auto& [rel, nrels] : hirm->base_to_noisy_relations) {
if (std::visit([](const auto& s) { return !s.is_observed; },
hirm->schema.at(rel))) {
clock_t t = clock();
std::cerr << "Transitioning " << rel << std::endl;
hirm->transition_latent_values_relation(prng, rel);
REPORT_SCORE(verbose, t, t_total, hirm);
}
Expand Down

0 comments on commit 52083f4

Please sign in to comment.