GClasses
|
#include <GEnsemble.h>
Public Member Functions | |
GBayesianModelCombination (GRand &rand) | |
General-purpose constructor. | |
GBayesianModelCombination (GDomNode *pNode, GLearnerLoader &ll) | |
Deserializing constructor. | |
virtual | ~GBayesianModelCombination () |
virtual GDomNode * | serialize (GDom *pDoc) |
Marshal this object into a DOM, which can then be converted to a variety of serial formats. | |
size_t | samples () |
Returns the number of samples from which to estimate the combination weights. | |
void | setSamples (size_t n) |
Sets the number of samples to use to estimate the combination weights. | |
Protected Member Functions | |
virtual bool | canImplicitlyHandleContinuousLabels () |
See the comment for GLearner::canImplicitlyHandleContinuousLabels. | |
virtual void | determineWeights (GMatrix &features, GMatrix &labels) |
Determines the weights in the manner of Bayesian model averaging, with the assumption of uniform priors. | |
Protected Attributes | |
size_t | m_samples |
GClasses::GBayesianModelCombination::GBayesianModelCombination | ( | GRand & | rand | ) | [inline] |
General-purpose constructor.
GClasses::GBayesianModelCombination::GBayesianModelCombination | ( | GDomNode * | pNode, |
GLearnerLoader & | ll | ||
) |
Deserializing constructor.
virtual GClasses::GBayesianModelCombination::~GBayesianModelCombination | ( | ) | [inline, virtual] |
virtual bool GClasses::GBayesianModelCombination::canImplicitlyHandleContinuousLabels | ( | ) | [inline, protected, virtual] |
See the comment for GLearner::canImplicitlyHandleContinuousLabels.
Reimplemented from GClasses::GTransducer.
virtual void GClasses::GBayesianModelCombination::determineWeights | ( | GMatrix & | features, |
GMatrix & | labels | ||
) | [protected, virtual] |
Determines the weights in the manner of Bayesian model averaging, with the assumption of uniform priors.
Reimplemented from GClasses::GBag.
size_t GClasses::GBayesianModelCombination::samples | ( | ) | [inline] |
Returns the number of samples from which to estimate the combination weights.
Marshal this object into a DOM, which can then be converted to a variety of serial formats.
Reimplemented from GClasses::GBag.
void GClasses::GBayesianModelCombination::setSamples | ( | size_t | n | ) | [inline] |
Sets the number of samples to use to estimate the combination weights.
size_t GClasses::GBayesianModelCombination::m_samples [protected] |