Go to the documentation of this file.
3 #ifndef L1Trigger_L1TMuonEndCap_emtf_Forest
4 #define L1Trigger_L1TMuonEndCap_emtf_Forest
16 Forest(std::vector<Event*>& trainingEvents);
39 void generate(
int numTrainEvents,
int numTestEvents,
double sigma);
49 const char* savetreesdirectory,
66 std::vector<std::vector<Event*> >
events;
void loadFromCondPayload(const L1TMuonEndCapForest::DForest &payload)
void updateEvents(Tree *tree)
void rankVariables(std::vector< int > &rank)
void updateRegTargets(Tree *tree, double learningRate, LossFunction *l)
void generate(int numTrainEvents, int numTestEvents, double sigma)
void listEvents(std::vector< std::vector< Event * > > &e)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void predictEvent(Event *e, unsigned int trees)
std::vector< Event * > getTrainingEvents()
void predictEvents(std::vector< Event * > &eventsp, unsigned int trees)
void saveSplitValues(const char *savefilename)
Forest & operator=(const Forest &forest)
void loadForestFromXML(const char *directory, unsigned int numTrees)
void appendCorrection(std::vector< Event * > &eventsp, int treenum)
void sortEventVectors(std::vector< std::vector< Event * > > &e)
Tree * getTree(unsigned int i)
void doStochasticRegression(int nodeLimit, int treeLimit, double learningRate, double fraction, LossFunction *l)
void prepareRandomSubsample(double fraction)
std::vector< std::vector< Event * > > events
std::vector< Tree * > trees
std::vector< DTree > DForest
void setTrainingEvents(std::vector< Event * > &trainingEvents)
std::vector< std::vector< Event * > > subSample
void doRegression(int nodeLimit, int treeLimit, double learningRate, LossFunction *l, const char *savetreesdirectory, bool saveTrees)