GClasses
GClasses::GWeightedModel Class Reference

Detailed Description

This is a helper-class used by GBag.

#include <GEnsemble.h>

Public Member Functions

 GWeightedModel (double weight, GSupervisedLearner *pModel)
 General-purpose constructor. More...
 
 GWeightedModel (GDomNode *pNode, GLearnerLoader &ll)
 Load from a DOM. More...
 
 ~GWeightedModel ()
 
GDomNodeserialize (GDom *pDoc) const
 Marshal this object into a DOM, which can then be converted to a variety of serial formats. More...
 
void setWeight (double w)
 Sets the weight of this model. More...
 

Public Attributes

GSupervisedLearnerm_pModel
 
double m_weight
 

Constructor & Destructor Documentation

GClasses::GWeightedModel::GWeightedModel ( double  weight,
GSupervisedLearner pModel 
)
inline

General-purpose constructor.

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

Load from a DOM.

GClasses::GWeightedModel::~GWeightedModel ( )

Member Function Documentation

GDomNode* GClasses::GWeightedModel::serialize ( GDom pDoc) const

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

void GClasses::GWeightedModel::setWeight ( double  w)
inline

Sets the weight of this model.

Member Data Documentation

GSupervisedLearner* GClasses::GWeightedModel::m_pModel
double GClasses::GWeightedModel::m_weight