|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MVAUtils_ForestBase_H
6 #define MVAUtils_ForestBase_H
46 unsigned int numClasses)
const = 0;
48 unsigned int numClasses)
const = 0;
51 virtual void PrintTree(
unsigned int itree)
const = 0;
virtual std::vector< float > GetMultiResponse(const std::vector< float > &values, unsigned int numClasses) const =0
Compute the prediction for multiclassification (a score for each class).
virtual float GetResponse(const std::vector< float * > &pointers) const =0
virtual unsigned int GetNTrees() const =0
virtual std::vector< float > GetMultiResponse(const std::vector< float * > &pointers, unsigned int numClasses) const =0
virtual float GetResponse(const std::vector< float > &values) const =0
Compute the prediction for regression.
virtual float GetRawResponse(const std::vector< float * > &pointers) const =0
virtual float GetTreeResponse(const std::vector< float * > &pointers, unsigned int itree) const =0
virtual float GetClassification(const std::vector< float > &values) const =0
Compute the prediction of a classification.
virtual TTree * WriteTree(TString) const =0
Return a TTree representing the BDT.
virtual void PrintTree(unsigned int itree) const =0
virtual float GetOffset() const =0
Return the global offset.
virtual float GetRawResponse(const std::vector< float > &values) const =0
Return the response of the whole Forest.
virtual float GetTreeResponse(const std::vector< float > &values, unsigned int itree) const =0
Return the response of one tree Must pass the features in a std::vector<float> values and the index o...
virtual ~IForest()=default
Compute the response from the binary trees in the forest.
std::vector< T * > pointers(std::vector< T > &v)
virtual float GetClassification(const std::vector< float * > &pointers) const =0
virtual int GetNVars() const =0
Get the number of input variable to be passed with std::vector to Get* methods.
virtual void PrintForest() const =0