Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost::TextGenerator Class Reference
Inheritance diagram for xgboost::TextGenerator:
xgboost::TreeGenerator

Public Member Functions

 TextGenerator (FeatureMap const &fmap, bool with_stats)
 
std::string LeafNode (RegTree const &tree, int32_t nid, uint32_t depth) const override
 
std::string Indicator (RegTree const &tree, int32_t nid, uint32_t) const override
 
std::string SplitNodeImpl (RegTree const &tree, int32_t nid, std::string const &template_str, std::string cond, uint32_t depth) const
 
std::string Integer (RegTree const &tree, int32_t nid, uint32_t depth) const override
 
std::string Quantitive (RegTree const &tree, int32_t nid, uint32_t depth) const override
 
std::string PlainNode (RegTree const &tree, int32_t nid, uint32_t depth) const override
 
std::string Categorical (RegTree const &tree, int32_t nid, uint32_t depth) const override
 
std::string NodeStat (RegTree const &tree, int32_t nid) const override
 
std::string BuildTree (RegTree const &tree, int32_t nid, uint32_t depth) override
 
void BuildTree (RegTree const &tree) override
 
- Public Member Functions inherited from xgboost::TreeGenerator
 TreeGenerator (FeatureMap const &_fmap, bool with_stats)
 
std::string Str () const
 

Additional Inherited Members

- Static Public Member Functions inherited from xgboost::TreeGenerator
static TreeGeneratorCreate (std::string const &attrs, FeatureMap const &fmap, bool with_stats)
 
- Protected Member Functions inherited from xgboost::TreeGenerator
virtual std::string SplitNode (RegTree const &tree, int32_t nid, uint32_t depth)
 
- Static Protected Member Functions inherited from xgboost::TreeGenerator
template<typename Float >
static std::string ToStr (Float value)
 
static std::string Tabs (uint32_t n)
 
static std::string Match (std::string const &input, std::map< std::string, std::string > const &replacements)
 
- Protected Attributes inherited from xgboost::TreeGenerator
FeatureMap const & fmap_
 
std::stringstream ss_
 
bool const with_stats_
 
- Static Protected Attributes inherited from xgboost::TreeGenerator
static int32_t constexpr kFloatMaxPrecision
 

Member Function Documentation

◆ BuildTree() [1/2]

void xgboost::TextGenerator::BuildTree ( RegTree const &  tree)
inlineoverridevirtual

Reimplemented from xgboost::TreeGenerator.

◆ BuildTree() [2/2]

std::string xgboost::TextGenerator::BuildTree ( RegTree const &  tree,
int32_t  nid,
uint32_t  depth 
)
inlineoverridevirtual

◆ Categorical()

std::string xgboost::TextGenerator::Categorical ( RegTree const &  tree,
int32_t  nid,
uint32_t  depth 
) const
inlineoverridevirtual

◆ Indicator()

std::string xgboost::TextGenerator::Indicator ( RegTree const &  tree,
int32_t  nid,
uint32_t   
) const
inlineoverridevirtual

Reimplemented from xgboost::TreeGenerator.

◆ Integer()

std::string xgboost::TextGenerator::Integer ( RegTree const &  tree,
int32_t  nid,
uint32_t  depth 
) const
inlineoverridevirtual

Reimplemented from xgboost::TreeGenerator.

◆ LeafNode()

std::string xgboost::TextGenerator::LeafNode ( RegTree const &  tree,
int32_t  nid,
uint32_t  depth 
) const
inlineoverridevirtual

◆ NodeStat()

std::string xgboost::TextGenerator::NodeStat ( RegTree const &  tree,
int32_t  nid 
) const
inlineoverridevirtual

Reimplemented from xgboost::TreeGenerator.

◆ PlainNode()

std::string xgboost::TextGenerator::PlainNode ( RegTree const &  tree,
int32_t  nid,
uint32_t  depth 
) const
inlineoverridevirtual

◆ Quantitive()

std::string xgboost::TextGenerator::Quantitive ( RegTree const &  tree,
int32_t  nid,
uint32_t  depth 
) const
inlineoverridevirtual

Reimplemented from xgboost::TreeGenerator.


The documentation for this class was generated from the following file: