GClasses
|
This is a helper-class used by GBag. More...
#include <GEnsemble.h>
Public Member Functions | |
GWeightedModel (double weight, GSupervisedLearner *pModel) | |
General-purpose constructor. | |
GWeightedModel (GDomNode *pNode, GLearnerLoader &ll) | |
Load from a DOM. | |
~GWeightedModel () | |
void | setWeight (double w) |
Sets the weight of this model. | |
GDomNode * | serialize (GDom *pDoc) |
Marshal this object into a DOM, which can then be converted to a variety of serial formats. | |
Public Attributes | |
double | m_weight |
GSupervisedLearner * | m_pModel |
This is a helper-class used by GBag.
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 | ( | ) |
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.