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

Method GetInt8Field

src/io/dataset.cpp:636–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636bool Dataset::GetInt8Field(const char* field_name, data_size_t* out_len, const int8_t** out_ptr) {
637 std::string name(field_name);
638 name = Common::Trim(name);
639 if (name == std::string("monotone_constraints")) {
640 *out_ptr = monotone_types_.data();
641 *out_len = static_cast<data_size_t>(monotone_types_.size());
642 } else {
643 return false;
644 }
645 return true;
646}
647
648void Dataset::SaveBinaryFile(const char* bin_filename) {
649 if (bin_filename != nullptr

Callers 1

LGBM_DatasetGetFieldFunction · 0.45

Calls 3

dataMethod · 0.80
TrimFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected