WeakClassifier class containing a decision tree and a weight. More...
Public Member Functions | |
WeakClassifier (const pandora::TiXmlHandle *const pXmlHandle) | |
Constructor using xml handle to set member variables. More... | |
WeakClassifier (const WeakClassifier &rhs) | |
Copy constructor. More... | |
WeakClassifier & | operator= (const WeakClassifier &rhs) |
Assignment operator. More... | |
~WeakClassifier () | |
Destructor. More... | |
bool | Predict (const LArMvaHelper::MvaFeatureVector &features) const |
Predict signal or background based on trained data. More... | |
bool | EvaluateNode (const int nodeId, const LArMvaHelper::MvaFeatureVector &features) const |
Evalute node and return outcome. More... | |
double | GetWeight () const |
Get boost weight for weak classifier. More... | |
int | GetTreeId () const |
Get tree id for weak classifier. More... | |
Private Attributes | |
IdToNodeMap | m_idToNodeMap |
Decision tree nodes. More... | |
double | m_weight |
Boost weight. More... | |
int | m_treeId |
Decision tree id. More... | |
WeakClassifier class containing a decision tree and a weight.
Definition at line 196 of file LArAdaBoostDecisionTree.h.
lar_content::AdaBoostDecisionTree::WeakClassifier::WeakClassifier | ( | const pandora::TiXmlHandle *const | pXmlHandle | ) |
Constructor using xml handle to set member variables.
pXmlHandle | xml handle to use when setting member variables |
lar_content::AdaBoostDecisionTree::WeakClassifier::WeakClassifier | ( | const WeakClassifier & | rhs | ) |
Copy constructor.
rhs | the weak classifier to copy |
Definition at line 287 of file LArAdaBoostDecisionTree.cc.
lar_content::AdaBoostDecisionTree::WeakClassifier::~WeakClassifier | ( | ) |
Destructor.
Definition at line 317 of file LArAdaBoostDecisionTree.cc.
bool lar_content::AdaBoostDecisionTree::WeakClassifier::EvaluateNode | ( | const int | nodeId, |
const LArMvaHelper::MvaFeatureVector & | features | ||
) | const |
Evalute node and return outcome.
nodeId | current node id |
features | the input features |
Definition at line 332 of file LArAdaBoostDecisionTree.cc.
|
inline |
Get tree id for weak classifier.
Definition at line 393 of file LArAdaBoostDecisionTree.h.
|
inline |
Get boost weight for weak classifier.
Definition at line 386 of file LArAdaBoostDecisionTree.h.
AdaBoostDecisionTree::WeakClassifier & lar_content::AdaBoostDecisionTree::WeakClassifier::operator= | ( | const WeakClassifier & | rhs | ) |
Assignment operator.
rhs | the weak classifier to assign |
Definition at line 298 of file LArAdaBoostDecisionTree.cc.
bool lar_content::AdaBoostDecisionTree::WeakClassifier::Predict | ( | const LArMvaHelper::MvaFeatureVector & | features | ) | const |
Predict signal or background based on trained data.
features | the input features |
Definition at line 325 of file LArAdaBoostDecisionTree.cc.
|
private |
Decision tree nodes.
Definition at line 259 of file LArAdaBoostDecisionTree.h.
|
private |
Decision tree id.
Definition at line 261 of file LArAdaBoostDecisionTree.h.
|
private |
Boost weight.
Definition at line 260 of file LArAdaBoostDecisionTree.h.