2 #ifndef EGAMMAOBJECTS_GBRForest 3 #define EGAMMAOBJECTS_GBRForest 35 explicit GBRForest(
const TMVA::MethodBDT *bdt);
38 double GetResponse(
const float* vector)
const;
39 double GetGradBoostClassifier(
const float* vector)
const;
43 double GetClassifier(
const float* vector)
const {
return GetGradBoostClassifier(vector); }
47 std::vector<GBRTree> &
Trees() {
return fTrees; }
48 const std::vector<GBRTree> &
Trees()
const {
return fTrees; }
60 double response = fInitialResponse;
61 for (std::vector<GBRTree>::const_iterator it=fTrees.begin(); it!=fTrees.end(); ++it) {
62 response += it->GetResponse(vector);
69 double response = GetResponse(vector);
70 return 2.0/(1.0+
exp(-2.0*response))-1;
double GetResponse(const float *vector) const
std::vector< GBRTree > & Trees()
void SetInitialResponse(double response)
double GetGradBoostClassifier(const float *vector) const
std::vector< GBRTree > fTrees
const std::vector< GBRTree > & Trees() const
#define COND_SERIALIZABLE
double GetClassifier(const float *vector) const
double GetAdaBoostClassifier(const float *vector) const