Fleet  0.0.9
Inference in the LOT
FleetStatistics.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <atomic>
4 
5 namespace FleetStatistics {
6  // Running MCMC/MCTS updates these standard statistics
7 
8  std::atomic<uintmax_t> posterior_calls(0);
9  std::atomic<uintmax_t> hypothesis_births(0); // how many total hypotheses have been created? -- useful for tracking when we found a solution
10  std::atomic<uintmax_t> vm_ops(0);
11  std::atomic<uintmax_t> mcmc_proposal_calls(0);
12  std::atomic<uintmax_t> mcmc_acceptance_count(0);
13  std::atomic<uintmax_t> global_sample_count(0);
14  std::atomic<uintmax_t> beam_steps(0);
15  std::atomic<uintmax_t> enumeration_steps(0);
16 
17  std::atomic<uintmax_t> depth_exceptions(0); // count up the grammar depth exceptions
18 
19 
20  void reset() {
21  posterior_calls = 0;
22  hypothesis_births = 0;
23  vm_ops = 0;
24  mcmc_proposal_calls = 0;
25  mcmc_acceptance_count = 0;
26  global_sample_count = 0;
27  beam_steps = 0;
28  enumeration_steps = 0;
29  }
30 }
std::atomic< uintmax_t > mcmc_proposal_calls(0)
std::atomic< uintmax_t > global_sample_count(0)
std::atomic< uintmax_t > mcmc_acceptance_count(0)
std::atomic< uintmax_t > depth_exceptions(0)
Definition: FleetStatistics.h:5
std::atomic< uintmax_t > enumeration_steps(0)
std::atomic< uintmax_t > posterior_calls(0)
std::atomic< uintmax_t > vm_ops(0)
std::atomic< uintmax_t > beam_steps(0)
std::atomic< uintmax_t > hypothesis_births(0)
void reset()
Definition: FleetStatistics.h:20