8#ifndef LAR_ADABOOST_DECISION_TREE_H
9#define LAR_ADABOOST_DECISION_TREE_H 1
339 return m_parentNodeId;
346 return m_leftChildNodeId;
353 return m_rightChildNodeId;
Header file for the lar multivariate analysis interface class.
Header file defining status codes and relevant preprocessor macros.
Node class used for representing a decision tree.
double GetThreshold() const
Return node threshold.
int m_variableId
Variable cut on for decision if decision node.
double m_threshold
Threshold used for decision if decision node.
int GetVariableId() const
Return cut variable.
int GetNodeId() const
Return node id.
int GetParentNodeId() const
Return parent node id.
int GetLeftChildNodeId() const
Return left child node id.
int m_rightChildNodeId
Right child node id.
bool IsLeaf() const
Return is the node a leaf.
int m_parentNodeId
Parent node id.
int GetRightChildNodeId() const
Return right child node id.
bool GetOutcome() const
Return outcome.
Node & operator=(const Node &rhs)
Assignment operator.
bool m_isLeaf
Is node a leaf.
int m_leftChildNodeId
Left child node id.
bool m_outcome
Outcome if leaf node.
StrongClassifier class used in application of adaptive boost decision tree.
~StrongClassifier()
Destructor.
pandora::StatusCode ReadComponent(pandora::TiXmlElement *pCurrentXmlElement)
Read xml element and if weak classifier add to member variables.
double Predict(const LArMvaHelper::MvaFeatureVector &features) const
Predict signal or background based on trained data.
WeakClassifiers m_weakClassifiers
Vector of weak classifers.
StrongClassifier & operator=(const StrongClassifier &rhs)
Assignment operator.
WeakClassifier class containing a decision tree and a weight.
double m_weight
Boost weight.
bool EvaluateNode(const int nodeId, const LArMvaHelper::MvaFeatureVector &features) const
Evalute node and return outcome.
double GetWeight() const
Get boost weight for weak classifier.
IdToNodeMap m_idToNodeMap
Decision tree nodes.
int GetTreeId() const
Get tree id for weak classifier.
int m_treeId
Decision tree id.
WeakClassifier & operator=(const WeakClassifier &rhs)
Assignment operator.
bool Predict(const LArMvaHelper::MvaFeatureVector &features) const
Predict signal or background based on trained data.
~WeakClassifier()
Destructor.
AdaBoostDecisionTree class.
double CalculateClassificationScore(const LArMvaHelper::MvaFeatureVector &features) const
Calculate the classification score for a set of input features, based on the trained model.
bool Classify(const LArMvaHelper::MvaFeatureVector &features) const
Classify the set of input features based on the trained model.
~AdaBoostDecisionTree()
Destructor.
AdaBoostDecisionTree()
Constructor.
pandora::StatusCode Initialize(const std::string ¶meterLocation, const std::string &bdtName)
Initialize the bdt model.
double CalculateProbability(const LArMvaHelper::MvaFeatureVector &features) const
Calculate the classification probability for a set of input features, based on the trained model.
AdaBoostDecisionTree & operator=(const AdaBoostDecisionTree &rhs)
Assignment operator.
double CalculateScore(const LArMvaHelper::MvaFeatureVector &features) const
Calculate score for input features using strong classifier.
StrongClassifier * m_pStrongClassifier
Strong adaptive boost tree classifier.
std::map< int, const Node * > IdToNodeMap
std::vector< const WeakClassifier * > WeakClassifiers
MvaTypes::MvaFeatureVector MvaFeatureVector
StatusCode
The StatusCode enum.