3 #ifndef L1Trigger_L1TMuonEndCap_Forest
4 #define L1Trigger_L1TMuonEndCap_Forest
15 L1TForest(std::vector<emtf::Event*>& trainingEvents);
32 void listEvents(std::vector< std::vector<emtf::Event*> >&
e);
34 void generate(Int_t numTrainEvents, Int_t numTestEvents,
double sigma);
40 const char* savetreesdirectory,
bool saveTrees);
58 std::vector< std::vector<emtf::Event*> >
events;
std::vector< emtf::Event * > getTrainingEvents()
void setTrainingEvents(std::vector< emtf::Event * > &trainingEvents)
void predictEvents(std::vector< emtf::Event * > &eventsp, unsigned int trees)
void updateRegTargets(emtf::Tree *tree, double learningRate, L1TLossFunction *l)
void prepareRandomSubsample(double fraction)
void rankVariables(std::vector< int > &rank)
void generate(Int_t numTrainEvents, Int_t numTestEvents, double sigma)
void doRegression(Int_t nodeLimit, Int_t treeLimit, double learningRate, L1TLossFunction *l, const char *savetreesdirectory, bool saveTrees)
void loadL1TForestFromXML(const char *directory, unsigned int numTrees)
std::vector< emtf::Tree * > trees
void doStochasticRegression(Int_t nodeLimit, Int_t treeLimit, double learningRate, double fraction, L1TLossFunction *l)
emtf::Tree * getTree(unsigned int i)
std::vector< std::vector< emtf::Event * > > subSample
void updateEvents(emtf::Tree *tree)
std::vector< std::vector< emtf::Event * > > events
void sortEventVectors(std::vector< std::vector< emtf::Event * > > &e)
void listEvents(std::vector< std::vector< emtf::Event * > > &e)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void predictEvent(emtf::Event *e, unsigned int trees)
void appendCorrection(std::vector< emtf::Event * > &eventsp, Int_t treenum)
void saveSplitValues(const char *savefilename)