#include <MVATrainer.h>
Classes | |
struct | CalibratedProcessor |
Public Member Functions | |
TrainerMonitoring::Module * | bookMonitor (const std::string &name) |
void | doneTraining (Calibration::MVAComputer *trainCalibration) const |
Calibration::MVAComputer * | getCalibration () const |
const std::string & | getName () const |
Calibration::MVAComputer * | getTrainCalibration () const |
void | loadState () |
MVATrainer (const std::string &fileName, bool useXSLT=false, const char *styleSheet=0) | |
void | saveState () |
void | setAutoSave (bool autoSave) |
void | setCleanup (bool cleanup) |
void | setCrossValidation (double split) |
void | setMonitoring (bool monitoring) |
void | setRandomSeed (UInt_t seed) |
std::string | trainFileName (const TrainProcessor *proc, const std::string &ext, const std::string &arg="") const |
~MVATrainer () | |
Static Public Attributes | |
static const AtomicId | kTargetId |
static const AtomicId | kWeightId |
Private Member Functions | |
void | connectProcessors (Calibration::MVAComputer *calib, const std::vector< CalibratedProcessor > &procs, bool withTarget) const |
SourceVariable * | createVariable (Source *source, AtomicId name, Variable::Flags flags) |
void | fillInputVars (SourceVariableSet &vars, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *xml) |
void | fillOutputVars (SourceVariableSet &vars, Source *source, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *xml) |
std::vector< AtomicId > | findFinalProcessors () const |
void | findUntrainedComputers (std::vector< AtomicId > &compute, std::vector< AtomicId > &train) const |
SourceVariable * | getVariable (AtomicId source, AtomicId name) const |
void | makeProcessor (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elem, AtomicId id, const char *name) |
Calibration::MVAComputer * | makeTrainCalibration (const AtomicId *compute, const AtomicId *train) const |
Private Attributes | |
double | crossValidation |
bool | doAutoSave |
bool | doCleanup |
bool | doMonitoring |
Source * | input |
std::auto_ptr< TrainerMonitoring > | monitoring |
std::string | name |
TrainProcessor * | output |
std::vector< AtomicId > | processors |
UInt_t | randomSeed |
std::map< AtomicId, Source * > | sources |
std::string | trainFileMask |
std::vector< SourceVariable * > | variables |
std::auto_ptr< XMLDocument > | xml |
Definition at line 27 of file MVATrainer.h.
PhysicsTools::MVATrainer::MVATrainer | ( | const std::string & | fileName, |
bool | useXSLT = false , |
||
const char * | styleSheet = 0 |
||
) |
Definition at line 422 of file MVATrainer.cc.
PhysicsTools::MVATrainer::~MVATrainer | ( | ) |
Definition at line 563 of file MVATrainer.cc.
TrainerMonitoring::Module * PhysicsTools::MVATrainer::bookMonitor | ( | const std::string & | name | ) |
Definition at line 710 of file MVATrainer.cc.
Referenced by PhysicsTools::TrainProcessor::doTrainBegin().
|
private |
Definition at line 885 of file MVATrainer.cc.
|
private |
Definition at line 734 of file MVATrainer.cc.
void PhysicsTools::MVATrainer::doneTraining | ( | Calibration::MVAComputer * | trainCalibration | ) | const |
Definition at line 1102 of file MVATrainer.cc.
|
private |
Definition at line 746 of file MVATrainer.cc.
|
private |
Definition at line 838 of file MVATrainer.cc.
|
private |
Definition at line 1115 of file MVATrainer.cc.
|
private |
Definition at line 1195 of file MVATrainer.cc.
Calibration::MVAComputer * PhysicsTools::MVATrainer::getCalibration | ( | ) | const |
Definition at line 1146 of file MVATrainer.cc.
Referenced by PhysicsTools::MVATrainerContainerLooperImpl< Record_t >::produce(), and PhysicsTools::TreeTrainer::train().
|
inline |
Calibration::MVAComputer * PhysicsTools::MVATrainer::getTrainCalibration | ( | ) | const |
Definition at line 1241 of file MVATrainer.cc.
Referenced by PhysicsTools::TreeTrainer::iteration().
|
private |
Definition at line 725 of file MVATrainer.cc.
void PhysicsTools::MVATrainer::loadState | ( | ) |
Definition at line 583 of file MVATrainer.cc.
|
private |
Definition at line 622 of file MVATrainer.cc.
|
private |
Definition at line 974 of file MVATrainer.cc.
void PhysicsTools::MVATrainer::saveState | ( | ) |
Definition at line 603 of file MVATrainer.cc.
|
inline |
|
inline |
|
inline |
Definition at line 37 of file MVATrainer.h.
References crossValidation, and PhysicsTools::split().
Referenced by PhysicsTools::TreeTrainer::train().
|
inline |
Definition at line 35 of file MVATrainer.h.
References doMonitoring, and monitoring.
Referenced by PhysicsTools::TreeTrainer::train().
|
inline |
std::string PhysicsTools::MVATrainer::trainFileName | ( | const TrainProcessor * | proc, |
const std::string & | ext, | ||
const std::string & | arg = "" |
||
) | const |
Definition at line 700 of file MVATrainer.cc.
|
private |
Definition at line 115 of file MVATrainer.h.
Referenced by setCrossValidation().
|
private |
Definition at line 110 of file MVATrainer.h.
Referenced by setAutoSave().
|
private |
Definition at line 111 of file MVATrainer.h.
Referenced by setCleanup().
|
private |
Definition at line 112 of file MVATrainer.h.
Referenced by setMonitoring().
|
private |
Definition at line 103 of file MVATrainer.h.
|
static |
Definition at line 59 of file MVATrainer.h.
Referenced by PhysicsTools::TreeTrainer::addTree(), and evaluateTtSemiLepSignalSel().
|
static |
Definition at line 60 of file MVATrainer.h.
Referenced by PhysicsTools::TreeTrainer::addTree(), and evaluateTtSemiLepSignalSel().
|
private |
Definition at line 106 of file MVATrainer.h.
Referenced by setMonitoring().
|
private |
Definition at line 109 of file MVATrainer.h.
Referenced by getName(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
private |
Definition at line 104 of file MVATrainer.h.
|
private |
Definition at line 102 of file MVATrainer.h.
|
private |
Definition at line 114 of file MVATrainer.h.
Referenced by setRandomSeed().
Definition at line 100 of file MVATrainer.h.
|
private |
Definition at line 108 of file MVATrainer.h.
|
private |
Definition at line 101 of file MVATrainer.h.
|
private |
Definition at line 107 of file MVATrainer.h.