1 #ifndef PhysicsTools_MVATrainer_TrainProcessor_h 2 #define PhysicsTools_MVATrainer_TrainProcessor_h 7 #include <boost/version.hpp> 8 #include <boost/filesystem.hpp> 10 #include <xercesc/dom/DOM.hpp> 31 template<
typename Instance_t>
63 virtual bool load() {
return true; }
67 inline const char *
getId()
const {
return name.c_str(); }
74 virtual void trainData(
const std::vector<double> *values,
75 bool target,
double weight) {}
76 virtual void testData(
const std::vector<double> *values,
77 bool target,
double weight,
bool trainedOn) {}
84 {
return boost::filesystem::exists(name.c_str()); }
95 unsigned long entries[2];
112 #define MVA_TRAINER_DEFINE_PLUGIN(T) \ 113 DEFINE_EDM_PLUGIN(::PhysicsTools::TrainProcessor::PluginFactory, \ 114 ::PhysicsTools::TrainProcessor::Dummy, \ 115 "TrainProcessor/" #T) 117 #endif // PhysicsTools_MVATrainer_TrainProcessor_h
def create(alignables, pedeDump, additionalData, outputFile, config)
std::vector< Variable::Flags > flags
#define XERCES_CPP_NAMESPACE_QUALIFIER