MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / PrintHistograms

Function PrintHistograms

src/treelearner/gpu_tree_learner.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50#if GPU_DEBUG > 0
51
52void PrintHistograms(HistogramBinEntry* h, size_t size) {
53 size_t total = 0;
54 for (size_t i = 0; i < size; ++i) {
55 printf("%03lu=%9.3g,%9.3g,%7d\t", i, h[i].sum_gradients, h[i].sum_hessians, h[i].cnt);
56 total += h[i].cnt;
57 if ((i & 3) == 3)
58 printf("\n");
59 }
60 printf("\nTotal examples: %lu\n", total);
61}
62
63union Float_t {
64 int64_t i;

Callers 2

CompareHistogramsFunction · 0.70
FindBestSplitsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected