#include <TrainProcessor.h>
Classes | |
struct | Dummy |
struct | Registry |
struct | SigBkg |
Public Types | |
typedef TrainerMonitoring::Module | Monitoring |
typedef edmplugin::PluginFactory< Dummy *()> | PluginFactory |
Public Member Functions | |
virtual void | cleanup () |
virtual void | configure (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *config) |
void | doTrainBegin () |
void | doTrainData (const std::vector< double > *values, bool target, double weight, bool train, bool test) |
void | doTrainEnd () |
virtual Calibration::VarProcessor * | getCalibration () const |
virtual Variable::Flags | getDefaultFlags () const |
const char * | getId () const |
virtual bool | load () |
virtual void | passFlags (const std::vector< Variable::Flags > &flags) |
virtual void | save () |
TrainProcessor (const char *name, const AtomicId *id, MVATrainer *trainer) | |
~TrainProcessor () override | |
Public Member Functions inherited from PhysicsTools::Source | |
const SourceVariableSet & | getInputs () const |
AtomicId | getName () const |
SourceVariable * | getOutput (AtomicId name) const |
const SourceVariableSet & | getOutputs () const |
bool | isTrained () const |
Source (AtomicId name, bool trained=false) | |
virtual | ~Source () |
Public Member Functions inherited from PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory | |
template<> | |
VarProcessor * | create (const char *name, const Calibration::VarProcessor *calib, const MVAComputer *parent) |
template<> | |
TrainProcessor * | create (const char *, const AtomicId *, MVATrainer *) |
template<> | |
TrainProcessor * | create (const char *name, const AtomicId *id, MVATrainer *trainer) |
template<> | |
VarProcessor * | create (const char *, const Calibration::VarProcessor *, const MVAComputer *) |
Protected Member Functions | |
bool | exists (const std::string &name) |
virtual void * | requestObject (const std::string &name) const |
virtual void | testData (const std::vector< double > *values, bool target, double weight, bool trainedOn) |
virtual void | trainBegin () |
virtual void | trainData (const std::vector< double > *values, bool target, double weight) |
virtual void | trainEnd () |
Protected Member Functions inherited from PhysicsTools::Source | |
SourceVariableSet & | getInputs () |
SourceVariableSet & | getOutputs () |
Protected Attributes | |
Monitoring * | monitoring |
std::string | name |
MVATrainer * | trainer |
Protected Attributes inherited from PhysicsTools::Source | |
bool | trained |
Private Attributes | |
std::vector< SigBkg > | monHistos |
Monitoring * | monModule |
Additional Inherited Members | |
Static Public Member Functions inherited from PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory | |
static Base_t * | create (const char *name, const CalibBase_t *calib, Parent_t *parent=0) |
Definition at line 28 of file TrainProcessor.h.
Definition at line 40 of file TrainProcessor.h.
Definition at line 70 of file TrainProcessor.h.
PhysicsTools::TrainProcessor::TrainProcessor | ( | const char * | name, |
const AtomicId * | id, | ||
MVATrainer * | trainer | ||
) |
|
override |
Definition at line 27 of file TrainProcessor.cc.
|
inlinevirtual |
Definition at line 65 of file TrainProcessor.h.
Referenced by PhysicsTools::MVATrainer::~MVATrainer().
|
inlinevirtual |
Definition at line 51 of file TrainProcessor.h.
void PhysicsTools::TrainProcessor::doTrainBegin | ( | ) |
Definition at line 31 of file TrainProcessor.cc.
References PhysicsTools::TrainerMonitoring::Module::book(), PhysicsTools::MVATrainer::bookMonitor(), PhysicsTools::TrainProcessor::SigBkg::entries, PhysicsTools::SourceVariableSet::get(), PhysicsTools::Source::getInputs(), PhysicsTools::Source::getName(), PhysicsTools::Variable::getName(), PhysicsTools::SourceVariable::getSource(), PhysicsTools::TrainProcessor::SigBkg::histo, infinity, PhysicsTools::Source::inputs, PhysicsTools::TrainProcessor::SigBkg::max, PhysicsTools::TrainProcessor::SigBkg::min, monHistos, monitoring, monModule, name, PhysicsTools::TrainProcessor::SigBkg::overflow, PhysicsTools::TrainProcessor::SigBkg::sameBinning, source, AlCaHLTBitMon_QueryRunRegistry::string, trainBegin(), trainer, PhysicsTools::TrainProcessor::SigBkg::underflow, and JetChargeProducer_cfi::var.
Referenced by getCalibration().
void PhysicsTools::TrainProcessor::doTrainData | ( | const std::vector< double > * | values, |
bool | target, | ||
double | weight, | ||
bool | train, | ||
bool | test | ||
) |
Definition at line 88 of file TrainProcessor.cc.
References min(), monHistos, monModule, edmPickEvents::target, testData(), trainData(), create_public_pileup_plots::vals, relativeConstraints::value, and mps_merge::weight.
Referenced by getCalibration().
void PhysicsTools::TrainProcessor::doTrainEnd | ( | ) |
Definition at line 124 of file TrainProcessor.cc.
References mps_fire::i, monHistos, monModule, trainEnd(), and TrainProcessor().
Referenced by getCalibration().
|
inlineprotected |
Definition at line 83 of file TrainProcessor.h.
|
inlinevirtual |
Definition at line 56 of file TrainProcessor.h.
References doTrainBegin(), doTrainData(), doTrainEnd(), edmPickEvents::target, and MuonErrorMatrixValues_cff::values.
|
inlinevirtual |
Definition at line 47 of file TrainProcessor.h.
References PhysicsTools::Variable::FLAG_ALL.
|
inline |
|
inlinevirtual |
Definition at line 63 of file TrainProcessor.h.
|
inlinevirtual |
Definition at line 54 of file TrainProcessor.h.
|
inlineprotectedvirtual |
Definition at line 80 of file TrainProcessor.h.
|
inlinevirtual |
Definition at line 64 of file TrainProcessor.h.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Definition at line 78 of file TrainProcessor.h.
References PhysicsTools::Source::trained.
Referenced by doTrainEnd().
|
private |
Definition at line 101 of file TrainProcessor.h.
Referenced by doTrainBegin(), doTrainData(), and doTrainEnd().
|
protected |
Definition at line 88 of file TrainProcessor.h.
Referenced by doTrainBegin().
|
private |
Definition at line 102 of file TrainProcessor.h.
Referenced by doTrainBegin(), doTrainData(), and doTrainEnd().
|
protected |
Definition at line 86 of file TrainProcessor.h.
Referenced by dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dirstructure.Comparison::__make_image(), dirstructure.Directory::__repr__(), dqm_interfaces.DirID::__repr__(), dirstructure.Comparison::__repr__(), config.CFG::__str__(), dirstructure.Directory::calcStats(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), doTrainBegin(), DisplayManager.DisplayManager::Draw(), utils.StatisticalTest::get_status(), getId(), VIDSelectorBase.VIDSelectorBase::initialize(), dirstructure.Directory::print_report(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), and Vispa.Views.PropertyView.Property::valueChanged().
|
protected |
Definition at line 87 of file TrainProcessor.h.
Referenced by doTrainBegin().