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

Method CreateBin

src/io/bin.cpp:629–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627 template class OrderedSparseBin<uint32_t>;
628
629 Bin* Bin::CreateBin(data_size_t num_data, int num_bin, double sparse_rate,
630 bool is_enable_sparse, double sparse_threshold, bool* is_sparse) {
631 // sparse threshold
632 if (sparse_rate >= sparse_threshold && is_enable_sparse) {
633 *is_sparse = true;
634 return CreateSparseBin(num_data, num_bin);
635 } else {
636 *is_sparse = false;
637 return CreateDenseBin(num_data, num_bin);
638 }
639 }
640
641 Bin* Bin::CreateDenseBin(data_size_t num_data, int num_bin) {
642 if (num_bin <= 16) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected