| 634 | } |
| 635 | |
| 636 | bool 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 | |
| 648 | void Dataset::SaveBinaryFile(const char* bin_filename) { |
| 649 | if (bin_filename != nullptr |
no test coverage detected