GClasses
|
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 () | |
GDomNode * | serialize (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 | |
GSupervisedLearner * | m_pModel |
double | m_weight |
|
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.
|
inline |
Sets the weight of this model.
GSupervisedLearner* GClasses::GWeightedModel::m_pModel |
double GClasses::GWeightedModel::m_weight |