CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1TForest Class Reference

#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::TreegetTree (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
 

Detailed Description

Definition at line 9 of file Forest.h.

Constructor & Destructor Documentation

L1TForest::L1TForest ( )

Definition at line 36 of file Forest.cc.

L1TForest::L1TForest ( std::vector< emtf::Event * > &  trainingEvents)

Definition at line 45 of file Forest.cc.

L1TForest::~L1TForest ( )

Definition at line 54 of file Forest.cc.

Member Function Documentation

void L1TForest::appendCorrection ( std::vector< emtf::Event * > &  eventsp,
Int_t  treenum 
)

Definition at line 436 of file Forest.cc.

void L1TForest::appendCorrection ( emtf::Event e,
Int_t  treenum 
)

Definition at line 474 of file Forest.cc.

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.

void L1TForest::doStochasticRegression ( Int_t  nodeLimit,
Int_t  treeLimit,
double  learningRate,
double  fraction,
L1TLossFunction l 
)

Definition at line 545 of file Forest.cc.

void L1TForest::generate ( Int_t  numTrainEvents,
Int_t  numTestEvents,
double  sigma 
)
std::vector< Event * > L1TForest::getTrainingEvents ( )

Definition at line 94 of file Forest.cc.

emtf::Tree * L1TForest::getTree ( unsigned int  i)

Definition at line 101 of file Forest.cc.

void L1TForest::listEvents ( std::vector< std::vector< emtf::Event * > > &  e)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Definition at line 131 of file Forest.cc.

void L1TForest::loadL1TForestFromXML ( const char *  directory,
unsigned int  numTrees 
)

Definition at line 489 of file Forest.cc.

void L1TForest::predictEvent ( emtf::Event e,
unsigned int  trees 
)

Definition at line 451 of file Forest.cc.

void L1TForest::predictEvents ( std::vector< emtf::Event * > &  eventsp,
unsigned int  trees 
)

Definition at line 413 of file Forest.cc.

Referenced by CalculatePt_FullPrecision().

void L1TForest::prepareRandomSubsample ( double  fraction)

Definition at line 516 of file Forest.cc.

void L1TForest::rankVariables ( std::vector< int > &  rank)

Definition at line 191 of file Forest.cc.

void L1TForest::saveSplitValues ( const char *  savefilename)

Definition at line 246 of file Forest.cc.

void L1TForest::setTrainingEvents ( std::vector< emtf::Event * > &  trainingEvents)

Definition at line 70 of file Forest.cc.

unsigned int L1TForest::size ( void  )

Definition at line 115 of file Forest.cc.

void L1TForest::sortEventVectors ( std::vector< std::vector< emtf::Event * > > &  e)

Definition at line 175 of file Forest.cc.

void L1TForest::updateEvents ( emtf::Tree tree)

Definition at line 336 of file Forest.cc.

void L1TForest::updateRegTargets ( emtf::Tree tree,
double  learningRate,
L1TLossFunction l 
)

Definition at line 294 of file Forest.cc.

Member Data Documentation

std::vector< std::vector<emtf::Event*> > L1TForest::events
private

Definition at line 58 of file Forest.h.

Referenced by eventsfwlite.Events::__getattr__(), and eventsfwlite.Events::__init__().

std::vector< std::vector<emtf::Event*> > L1TForest::subSample
private

Definition at line 59 of file Forest.h.

std::vector<emtf::Tree*> L1TForest::trees
private

Definition at line 60 of file Forest.h.