59 "Combines output from contained methods. If None, no combination is performed. (default None)");
89 Log() << kINFO <<
"Reading weightfile: " << weightfile <<
Endl;
116 Log() << kFATAL << iFold <<
" out of range. "
159 Log() << kFATAL <<
"MethodCategory not supported for the moment." <<
Endl;
163 m->SetWeightFileDir(fileDir);
168 m->ReadStateFromFile();
220 Log() << kINFO <<
"Reading weightfile: " << weightfile <<
Endl;
229 Log() << kFATAL <<
"MethodCrossValidation supports XML reading only for deterministic splitting !" <<
Endl;
239 Log() << kFATAL <<
"CrossValidation currently supports only reading from XML." <<
Endl;
262 val +=
m->GetMvaValue(
err, errUpper);
295 auto methodValues =
m->GetMulticlassValues();
296 for (
size_t i = 0; i < methodValues.size(); ++i) {
337 auto methodValues =
m->GetRegressionValues();
338 for (
size_t i = 0; i < methodValues.size(); ++i) {
372 <<
"Method CrossValidation should not be created manually,"
373 " only as part of using TMVA::Reader."
401 Log() << kWARNING <<
"MakeClassSpecific not implemented for CrossValidation" <<
Endl;
409 Log() << kWARNING <<
"MakeClassSpecificHeader not implemented for CrossValidation" <<
Endl;
#define REGISTER_METHOD(CLASS)
for example
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
IMethod * Create(const std::string &name, const TString &job, const TString &title, DataSetInfo &dsi, const TString &option)
creates the method if needed based on the method name using the creator function the factory has stor...
static ClassifierFactory & Instance()
access to the ClassifierFactory singleton creates the instance if needed
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
void AddPreDefVal(const T &)
Class that contains all the data information.
Virtual base Class for all MVA method.
MethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="")
standard constructor
const char * GetName() const override
virtual void DeclareCompatibilityOptions()
options that are used ONLY for the READER to ensure backward compatibility they are hence without any...
UInt_t GetNTargets() const
const Event * GetEvent() const
DataSetInfo & DataInfo() const
TString GetWeightFileName() const
retrieve weight file name
Types::EAnalysisType fAnalysisType
friend class MethodCrossValidation
std::vector< Float_t > fRegressionValues
void Train(void) override
Call the Optimizer with the set of parameters and ranges that are meant to be tuned.
std::vector< Float_t > fMulticlassValues
std::unique_ptr< CvSplitKFoldsExpr > fSplitExpr
const Ranking * CreateRanking() override
void WriteMonitoringHistosToFile(void) const override
write special monitoring histograms to file dummy implementation here --------------—
TString fEncapsulatedMethodName
TString fEncapsulatedMethodTypeName
std::vector< MethodBase * > fEncapsulatedMethods
void GetHelpMessage() const override
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) override
void AddWeightsXMLTo(void *parent) const override
Write weights to XML.
TString fOutputEnsembling
void DeclareCompatibilityOptions() override
Options that are used ONLY for the READER to ensure backward compatibility.
void Init(void) override
Common initialisation with defaults for the Method.
void MakeClassSpecific(std::ostream &, const TString &) const override
Make ROOT-independent C++ class for classifier response (classifier-specific implementation).
TString GetWeightFileNameForFold(UInt_t iFold) const
Returns filename of weight file for a given fold.
const std::vector< Float_t > & GetMulticlassValues() override
Get the multiclass MVA response.
MethodBase * InstantiateMethodFromXML(TString methodTypeName, TString weightfile) const
Reads in a weight file an instantiates the corresponding method.
void ReadWeightsFromStream(std::istream &istr) override
Read the weights.
void ProcessOptions() override
The option string is decoded, for available options see "DeclareOptions".
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr) override
void Reset(void) override
Reset the method, as if it had just been instantiated (forget all training etc.).
std::map< const TMVA::Event *, UInt_t > fEventToFoldMapping
MethodCrossValidation(const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
const std::vector< Float_t > & GetRegressionValues() override
Get the regression value generated by the containing methods.
void ReadWeightsFromXML(void *parent) override
Reads from the xml file.
void MakeClassSpecificHeader(std::ostream &, const TString &) const override
Specific class header.
virtual ~MethodCrossValidation(void)
Destructor.
void DeclareOptions() override
Ranking for variables in method (implementation).
Singleton class for Global types used by TMVA.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)