GClasses
|
#include <GDecisionTree.h>
Public Member Functions | |
GRandomForest (GRand &rand, size_t trees, size_t samples=1) | |
GRandomForest (GDomNode *pNode, GLearnerLoader &ll) | |
virtual | ~GRandomForest () |
virtual GDomNode * | serialize (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 | |
GBag * | m_pEnsemble |
GClasses::GRandomForest::GRandomForest | ( | GRand & | rand, |
size_t | trees, | ||
size_t | samples = 1 |
||
) |
GClasses::GRandomForest::GRandomForest | ( | GDomNode * | pNode, |
GLearnerLoader & | ll | ||
) |
virtual GClasses::GRandomForest::~GRandomForest | ( | ) | [virtual] |
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] |
See the comment for GSupervisedLearner::predictDistributionInner.
Implements GClasses::GSupervisedLearner.
virtual void GClasses::GRandomForest::predictInner | ( | const double * | pIn, |
double * | pOut | ||
) | [protected, virtual] |
See the comment for GSupervisedLearner::predictInner.
Implements GClasses::GSupervisedLearner.
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] |
See the comment for GSupervisedLearner::trainInner.
Implements GClasses::GSupervisedLearner.
GBag* GClasses::GRandomForest::m_pEnsemble [protected] |