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