ATLAS Offline Software
|
#include <ForestLGBM.h>
Public Member Functions | |
virtual float | GetClassification (const std::vector< float > &values) const final |
Compute the prediction of a classification. More... | |
virtual float | GetClassification (const std::vector< float * > &pointers) const final |
virtual float | GetTreeResponse (const std::vector< float > &values, unsigned int itree) const override final |
Return the response of one tree Must pass the features in a std::vector<float> values and the index of the tree. More... | |
virtual float | GetTreeResponse (const std::vector< float * > &pointers, unsigned int itree) const override final |
virtual float | GetOffset () const override |
Return the offset of the forest. More... | |
virtual float | GetRawResponse (const std::vector< float > &values) const override final |
Return the response of the whole Forest. More... | |
virtual float | GetRawResponse (const std::vector< float * > &pointers) const override final |
virtual float | GetResponse (const std::vector< float > &values) const override |
Compute the prediction for regression. More... | |
virtual float | GetResponse (const std::vector< float * > &pointers) const override |
virtual std::vector< float > | GetMultiResponse (const std::vector< float > &values, unsigned int numClasses) const override |
Compute the prediction for multiclassification (a score for each class). More... | |
virtual std::vector< float > | GetMultiResponse (const std::vector< float * > &pointers, unsigned int numClasses) const override |
virtual unsigned int | GetNTrees () const override final |
virtual void | PrintForest () const override |
virtual void | PrintTree (unsigned int itree) const override |
std::vector< Node_t > | GetTree (unsigned int itree) const |
Return the vector of nodes for the tree itree. More... | |
virtual TTree * | WriteTree (TString) const =0 |
Return a TTree representing the BDT. More... | |
virtual int | GetNVars () const =0 |
Get the number of input variable to be passed with std::vector to Get* methods. More... | |
Protected Member Functions | |
float | GetTreeResponseFromNode (const std::vector< float > &values, index_t index) const |
Get the response of a tree. More... | |
float | GetTreeResponseFromNode (const std::vector< float * > &pointers, index_t index) const |
void | newTree (const std::vector< Node_t > &nodes) |
append a new tree (defined by a vector of nodes serialized in preorder) to the forest More... | |
Private Attributes | |
std::vector< index_t > | m_forest |
indices of the top-level nodes of each tree More... | |
std::vector< Node_t > | m_nodes |
where the nodes of the forest are stored More... | |
Definition at line 26 of file ForestLGBM.h.
|
inlinefinalvirtual |
Implements MVAUtils::IForest.
Definition at line 35 of file ForestLGBM.h.
|
inlinefinalvirtual |
Compute the prediction of a classification.
Implements MVAUtils::IForest.
Definition at line 31 of file ForestLGBM.h.
|
overridevirtualinherited |
Implements MVAUtils::IForest.
|
overridevirtualinherited |
Compute the prediction for multiclassification (a score for each class).
In addition to the input values need to pass the number of classes
Implements MVAUtils::IForest.
|
inlinefinaloverridevirtualinherited |
Implements MVAUtils::IForest.
|
pure virtualinherited |
Get the number of input variable to be passed with std::vector to Get* methods.
Implemented in MVAUtils::ForestTMVA, MVAUtils::ForestLGBM, MVAUtils::ForestXGBoost, and MVAUtils::ForestLGBMSimple.
|
inlineoverridevirtualinherited |
Return the offset of the forest.
Since by default there is no offset, return 0
Implements MVAUtils::IForest.
Reimplemented in MVAUtils::ForestWeighted< Node_t >, and MVAUtils::ForestWeighted< NodeTMVA >.
|
finaloverridevirtualinherited |
Implements MVAUtils::IForest.
|
finaloverridevirtualinherited |
Return the response of the whole Forest.
Raw is just the sum of all the trees
Implements MVAUtils::IForest.
|
overridevirtualinherited |
Implements MVAUtils::IForest.
Reimplemented in MVAUtils::ForestTMVA.
|
overridevirtualinherited |
Compute the prediction for regression.
Implements MVAUtils::IForest.
Reimplemented in MVAUtils::ForestTMVA.
|
inherited |
Return the vector of nodes for the tree itree.
|
finaloverridevirtualinherited |
Implements MVAUtils::IForest.
|
finaloverridevirtualinherited |
Return the response of one tree Must pass the features in a std::vector<float> values and the index of the tree.
Implements MVAUtils::IForest.
|
protectedinherited |
|
protectedinherited |
Get the response of a tree.
Instead of specifying the index of the tree (as in GetTreeResponse) the index of the top node of the tree should be specified
|
protectedinherited |
append a new tree (defined by a vector of nodes serialized in preorder) to the forest
|
overridevirtualinherited |
Implements MVAUtils::IForest.
|
overridevirtualinherited |
Implements MVAUtils::IForest.
Reimplemented in MVAUtils::ForestWeighted< Node_t >, and MVAUtils::ForestWeighted< NodeTMVA >.
|
pure virtualinherited |
Return a TTree representing the BDT.
The called is the owner of the returned TTree
Implemented in MVAUtils::ForestTMVA, MVAUtils::ForestLGBM, MVAUtils::ForestXGBoost, and MVAUtils::ForestLGBMSimple.
|
privateinherited |
|
privateinherited |