6 #include <dmlc/registry.h> 11 void get_dump_from_node(std::ostringstream* oss,
14 (*oss) << std::string(indent,
' ') << node->GetDump() <<
"\n";
17 get_dump_from_node(oss, child, indent + 2);
26 DMLC_REGISTRY_FILE_TAG(dump);
28 template <
typename ThresholdType,
typename LeafOutputType>
30 ASTBuilder<ThresholdType, LeafOutputType>::GetDump()
const {
31 std::ostringstream oss;
32 get_dump_from_node(&oss, this->main_node, 0);
36 template std::string ASTBuilder<float, uint32_t>::GetDump()
const;
37 template std::string ASTBuilder<float, float>::GetDump()
const;
38 template std::string ASTBuilder<double, uint32_t>::GetDump()
const;
39 template std::string ASTBuilder<double, double>::GetDump()
const;