#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.
L1TForest::~L1TForest | ( | ) |
void L1TForest::appendCorrection | ( | std::vector< emtf::Event * > & | eventsp, |
Int_t | treenum | ||
) |
Definition at line 436 of file Forest.cc.
References emtf::Tree::filterEvents().
void L1TForest::appendCorrection | ( | emtf::Event * | e, |
Int_t | treenum | ||
) |
Definition at line 474 of file Forest.cc.
References emtf::Tree::filterEvent(), trackingPlots::fit, emtf::Node::getFitValue(), and emtf::Event::predictedValue.
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, PatBasicFWLiteAnalyzer::events, mps_fire::i, alignCSCRings::s, emtf::Tree::saveToXML(), and AlCaHLTBitMon_QueryRunRegistry::string.
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, PatBasicFWLiteAnalyzer::events, mps_fire::i, alignCSCRings::s, 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, MillePedeFileConverter_cfg::e, mps_fire::i, and emtf::Event::sortingIndex.
void L1TForest::loadL1TForestFromXML | ( | const char * | directory, |
unsigned int | numTrees | ||
) |
Definition at line 489 of file Forest.cc.
References mps_fire::i.
Referenced by l1t::EmtfPtAssignment::EmtfPtAssignment().
void L1TForest::predictEvent | ( | emtf::Event * | e, |
unsigned int | trees | ||
) |
Definition at line 451 of file Forest.cc.
References mps_fire::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 mps_fire::i.
Referenced by CalculatePt_FullPrecision().
void L1TForest::prepareRandomSubsample | ( | double | fraction | ) |
Definition at line 516 of file Forest.cc.
References begin, end, PatBasicFWLiteAnalyzer::events, mps_fire::i, shuffle(), and findQualityFiles::v.
void L1TForest::rankVariables | ( | std::vector< int > & | rank | ) |
Definition at line 191 of file Forest.cc.
References PatBasicFWLiteAnalyzer::events, mps_fire::i, hpstanc_transforms::max, edm::second(), findQualityFiles::v, and w.
void L1TForest::saveSplitValues | ( | const char * | savefilename | ) |
Definition at line 246 of file Forest.cc.
References begin, end, PatBasicFWLiteAnalyzer::events, mps_fire::i, tier0::unique(), and findQualityFiles::v.
void L1TForest::setTrainingEvents | ( | std::vector< emtf::Event * > & | trainingEvents | ) |
Definition at line 70 of file Forest.cc.
References emtf::Event::data, MillePedeFileConverter_cfg::e, PatBasicFWLiteAnalyzer::events, and mps_fire::i.
unsigned int L1TForest::size | ( | void | ) |
Definition at line 115 of file Forest.cc.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
void L1TForest::sortEventVectors | ( | std::vector< std::vector< emtf::Event * > > & | e | ) |
Definition at line 175 of file Forest.cc.
References begin, compareEvents(), MillePedeFileConverter_cfg::e, end, mps_fire::i, and emtf::Event::sortingIndex.
void L1TForest::updateEvents | ( | emtf::Tree * | tree | ) |
Definition at line 336 of file Forest.cc.
References MillePedeFileConverter_cfg::e, trackingPlots::fit, emtf::Tree::getTerminalNodes(), 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, MillePedeFileConverter_cfg::e, L1TLossFunction::fit(), trackingPlots::fit, emtf::Tree::getTerminalNodes(), emtf::Event::predictedValue, L1TLossFunction::target(), and findQualityFiles::v.
|
private |
Definition at line 58 of file Forest.h.
Referenced by eventsfwlite.Events::__getattr__(), looper.Looper::loop(), and looper.Looper::process().
|
private |
|
private |