X-Boost  2.3.8
Public Types | Public Member Functions | Public Attributes | List of all members
DecisionTreeLearner< Aggregator > Struct Template Reference

A Decision Tree builder. More...

#include <DecisionTreeLearner.h>

Inherits DataSetHandle< Aggregator >.

Public Types

typedef DataSet< Aggregator > DataSetType
 
typedef DataSetHandle< Aggregator > DataSetHandleType
 
- Public Types inherited from DataSetHandle< Aggregator >
typedef DataSetHandle< Aggregator > ViewType
 a soft copy of the set
 
typedef DataSet< Aggregator > StoreType
 an hard copy of the set
 

Public Member Functions

void SetTrainingSet (const DataSetHandleType &src)
 import a training set
 
template<class FeatureExtractor , class FeatureGenerator >
bool BuildDecisionTree (DecisionTree< FeatureExtractor > &root, FeatureGenerator &f) const
 Build a tree.
 
template<class FeatureType >
void Test (const DecisionTree< FeatureType > &root)
 Test tree performance on the training set.
 
- Public Member Functions inherited from DataSetHandle< Aggregator >
template<class SrcAggregator >
 DataSetHandle (const DataSetHandle< SrcAggregator > &src)
 
void Clear ()
 Reset (but not release memory)
 
unsigned int Size () const
 Return number of allocated samples (complete size of DataSet)
 
void SetParams (const ParamType &src)
 
const ParamType & GetParams () const
 
void Insert (const PatternType &p)
 add a new pattern to the list
 
void Release ()
 Force, manually, to release memory in data.
 
template<class SrcAggregator >
void operator= (const DataSetHandle< SrcAggregator > &src)
 
void Import (const DataType &data, int category)
 

Public Attributes

int depth
 max depth
 
- Public Attributes inherited from DataSetHandle< Aggregator >
DECLARE_AGGREGATOR typedef
std::vector< PatternType > 
ListType
 
unsigned int n_patternP
 
unsigned int n_patternN
 
ListType templates
 a collection of Pattern used in this dataset
 

Detailed Description

template<class Aggregator>
struct DecisionTreeLearner< Aggregator >

A Decision Tree builder.


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