GClasses

GClasses::GRandomForest Class Reference

#include <GDecisionTree.h>

Inheritance diagram for GClasses::GRandomForest:
GClasses::GSupervisedLearner GClasses::GTransducer

List of all members.

Public Member Functions

 GRandomForest (GRand &rand, size_t trees, size_t samples=1)
 GRandomForest (GDomNode *pNode, GLearnerLoader &ll)
virtual ~GRandomForest ()
virtual GDomNodeserialize (GDom *pDoc)
 Marshal this object into a DOM, which can then be converted to a variety of serial formats.
virtual void clear ()
 See the comment for GSupervisedLearner::clear.

Static Public Member Functions

static void test ()
 Runs some unit tests related to supervised learning. Throws an exception if any problems are found.

Protected Member Functions

virtual void trainInner (GMatrix &features, GMatrix &labels)
 See the comment for GSupervisedLearner::trainInner.
virtual void predictInner (const double *pIn, double *pOut)
 See the comment for GSupervisedLearner::predictInner.
virtual void predictDistributionInner (const double *pIn, GPrediction *pOut)
 See the comment for GSupervisedLearner::predictDistributionInner.

Protected Attributes

GBagm_pEnsemble

Constructor & Destructor Documentation

GClasses::GRandomForest::GRandomForest ( GRand rand,
size_t  trees,
size_t  samples = 1 
)
GClasses::GRandomForest::GRandomForest ( GDomNode pNode,
GLearnerLoader ll 
)
virtual GClasses::GRandomForest::~GRandomForest ( ) [virtual]

Member Function Documentation

virtual void GClasses::GRandomForest::clear ( ) [virtual]

See the comment for GSupervisedLearner::clear.

Implements GClasses::GSupervisedLearner.

virtual void GClasses::GRandomForest::predictDistributionInner ( const double *  pIn,
GPrediction pOut 
) [protected, virtual]
virtual void GClasses::GRandomForest::predictInner ( const double *  pIn,
double *  pOut 
) [protected, virtual]
virtual GDomNode* GClasses::GRandomForest::serialize ( GDom pDoc) [virtual]

Marshal this object into a DOM, which can then be converted to a variety of serial formats.

Implements GClasses::GSupervisedLearner.

static void GClasses::GRandomForest::test ( ) [static]

Runs some unit tests related to supervised learning. Throws an exception if any problems are found.

Reimplemented from GClasses::GSupervisedLearner.

virtual void GClasses::GRandomForest::trainInner ( GMatrix features,
GMatrix labels 
) [protected, virtual]

Member Data Documentation