#include <Forest.h>
Public Member Functions | |
void | appendCorrection (std::vector< emtf::Event * > &eventsp, Int_t treenum) |
void | appendCorrection (emtf::Event *e, Int_t treenum) |
void | doRegression (Int_t nodeLimit, Int_t treeLimit, double learningRate, L1TLossFunction *l, const char *savetreesdirectory, bool saveTrees) |
void | doStochasticRegression (Int_t nodeLimit, Int_t treeLimit, double learningRate, double fraction, L1TLossFunction *l) |
void | generate (Int_t numTrainEvents, Int_t numTestEvents, double sigma) |
std::vector< emtf::Event * > | getTrainingEvents () |
emtf::Tree * | getTree (unsigned int i) |
L1TForest () | |
L1TForest (std::vector< emtf::Event * > &trainingEvents) | |
void | listEvents (std::vector< std::vector< emtf::Event * > > &e) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! More... | |
void | loadL1TForestFromXML (const char *directory, unsigned int numTrees) |
void | predictEvent (emtf::Event *e, unsigned int trees) |
void | predictEvents (std::vector< emtf::Event * > &eventsp, unsigned int trees) |
void | prepareRandomSubsample (double fraction) |
void | rankVariables (std::vector< int > &rank) |
void | saveSplitValues (const char *savefilename) |
void | setTrainingEvents (std::vector< emtf::Event * > &trainingEvents) |
unsigned int | size () |
void | sortEventVectors (std::vector< std::vector< emtf::Event * > > &e) |
void | updateEvents (emtf::Tree *tree) |
void | updateRegTargets (emtf::Tree *tree, double learningRate, L1TLossFunction *l) |
~L1TForest () | |
Private Attributes | |
std::vector< std::vector < emtf::Event * > > | events |
std::vector< std::vector < emtf::Event * > > | subSample |
std::vector< emtf::Tree * > | trees |
L1TForest::L1TForest | ( | ) |
L1TForest::L1TForest | ( | std::vector< emtf::Event * > & | trainingEvents | ) |
Definition at line 45 of file Forest.cc.
void L1TForest::appendCorrection | ( | std::vector< emtf::Event * > & | eventsp, |
Int_t | treenum | ||
) |
Definition at line 436 of file Forest.cc.
References emtf::Tree::filterEvents(), and MainPageGenerator::tree.
void L1TForest::appendCorrection | ( | emtf::Event * | e, |
Int_t | treenum | ||
) |
Definition at line 474 of file Forest.cc.
References emtf::Tree::filterEvent(), emtf::Node::getFitValue(), emtf::Event::predictedValue, and MainPageGenerator::tree.
void L1TForest::doRegression | ( | Int_t | nodeLimit, |
Int_t | treeLimit, | ||
double | learningRate, | ||
L1TLossFunction * | l, | ||
const char * | savetreesdirectory, | ||
bool | saveTrees | ||
) |
Definition at line 366 of file Forest.cc.
References emtf::Tree::buildTree(), EnergyCorrector::c, patZpeak::events, i, alignCSCRings::s, emtf::Tree::saveToXML(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and MainPageGenerator::tree.
void L1TForest::doStochasticRegression | ( | Int_t | nodeLimit, |
Int_t | treeLimit, | ||
double | learningRate, | ||
double | fraction, | ||
L1TLossFunction * | l | ||
) |
Definition at line 545 of file Forest.cc.
References EnergyCorrector::c, patZpeak::events, i, alignCSCRings::s, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
void L1TForest::generate | ( | Int_t | numTrainEvents, |
Int_t | numTestEvents, | ||
double | sigma | ||
) |
std::vector< Event * > L1TForest::getTrainingEvents | ( | ) |
emtf::Tree * L1TForest::getTree | ( | unsigned int | i | ) |
void L1TForest::listEvents | ( | std::vector< std::vector< emtf::Event * > > & | e | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 131 of file Forest.cc.
References gather_cfg::cout, alignCSCRings::e, i, and j.
void L1TForest::loadL1TForestFromXML | ( | const char * | directory, |
unsigned int | numTrees | ||
) |
Definition at line 489 of file Forest.cc.
References contentValuesFiles::fullPath, i, and contentValuesCheck::ss.
void L1TForest::predictEvent | ( | emtf::Event * | e, |
unsigned int | trees | ||
) |
Definition at line 451 of file Forest.cc.
References i.
Referenced by l1t::EmtfPtAssignment::calculatePt().
void L1TForest::predictEvents | ( | std::vector< emtf::Event * > & | eventsp, |
unsigned int | trees | ||
) |
Definition at line 413 of file Forest.cc.
References i.
Referenced by CalculatePt_FullPrecision().
void L1TForest::prepareRandomSubsample | ( | double | fraction | ) |
Definition at line 516 of file Forest.cc.
References begin, end, patZpeak::events, i, shuffle(), and findQualityFiles::v.
void L1TForest::rankVariables | ( | std::vector< int > & | rank | ) |
Definition at line 191 of file Forest.cc.
References patZpeak::events, i, j, bookConverter::max, edm::second(), findQualityFiles::v, and w.
void L1TForest::saveSplitValues | ( | const char * | savefilename | ) |
Definition at line 246 of file Forest.cc.
References begin, end, patZpeak::events, i, j, contentValuesCheck::ss, FrontierCondition_GT_autoExpress_cfi::unique(), and findQualityFiles::v.
void L1TForest::setTrainingEvents | ( | std::vector< emtf::Event * > & | trainingEvents | ) |
Definition at line 70 of file Forest.cc.
References emtf::Event::data, alignCSCRings::e, patZpeak::events, and i.
void L1TForest::sortEventVectors | ( | std::vector< std::vector< emtf::Event * > > & | e | ) |
Definition at line 175 of file Forest.cc.
References begin, compareEvents(), alignCSCRings::e, end, i, and emtf::Event::sortingIndex.
void L1TForest::updateEvents | ( | emtf::Tree * | tree | ) |
Definition at line 336 of file Forest.cc.
References alignCSCRings::e, emtf::Tree::getTerminalNodes(), j, emtf::Event::predictedValue, and findQualityFiles::v.
void L1TForest::updateRegTargets | ( | emtf::Tree * | tree, |
double | learningRate, | ||
L1TLossFunction * | l | ||
) |
Definition at line 294 of file Forest.cc.
References emtf::Event::data, alignCSCRings::e, L1TLossFunction::fit(), emtf::Tree::getTerminalNodes(), j, emtf::Event::predictedValue, L1TLossFunction::target(), and findQualityFiles::v.
|
private |
Definition at line 58 of file Forest.h.
Referenced by eventsfwlite.Events::__getattr__(), eventsfwlite.Events::__init__(), looper.Looper::loop(), and looper.Looper::process().
|
private |
|
private |