GClasses

GClasses::GBayesianModelCombination Class Reference

#include <GEnsemble.h>

Inheritance diagram for GClasses::GBayesianModelCombination:
GClasses::GBag GClasses::GEnsemble GClasses::GSupervisedLearner GClasses::GTransducer

List of all members.

Public Member Functions

 GBayesianModelCombination (GRand &rand)
 General-purpose constructor.
 GBayesianModelCombination (GDomNode *pNode, GLearnerLoader &ll)
 Deserializing constructor.
virtual ~GBayesianModelCombination ()
virtual GDomNodeserialize (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

Constructor & Destructor Documentation

GClasses::GBayesianModelCombination::GBayesianModelCombination ( GRand rand) [inline]

General-purpose constructor.

GClasses::GBayesianModelCombination::GBayesianModelCombination ( GDomNode pNode,
GLearnerLoader ll 
)

Deserializing constructor.

virtual GClasses::GBayesianModelCombination::~GBayesianModelCombination ( ) [inline, virtual]

Member Function Documentation

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.

virtual GDomNode* GClasses::GBayesianModelCombination::serialize ( GDom pDoc) [virtual]

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.


Member Data Documentation