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

Method CreateSparseBin

python-package/compile/src/io/bin.cpp:653–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651 }
652
653 Bin* Bin::CreateSparseBin(data_size_t num_data, int num_bin) {
654 if (num_bin <= 256) {
655 return new SparseBin<uint8_t>(num_data);
656 } else if (num_bin <= 65536) {
657 return new SparseBin<uint16_t>(num_data);
658 } else {
659 return new SparseBin<uint32_t>(num_data);
660 }
661 }
662
663} // namespace LightGBM

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected