60 "Combines output from contained methods. If None, no combination is performed. (default None)");
90 Log() << kINFO <<
"Reading weightfile: " << weightfile <<
Endl;
117 Log() << kFATAL << iFold <<
" out of range. "
160 Log() << kFATAL <<
"MethodCategory not supported for the moment." <<
Endl;
164 m->SetWeightFileDir(fileDir);
169 m->ReadStateFromFile();
221 Log() << kINFO <<
"Reading weightfile: " << weightfile <<
Endl;
230 Log() << kFATAL <<
"MethodCrossValidation supports XML reading only for deterministic splitting !" <<
Endl;
240 Log() << kFATAL <<
"CrossValidation currently supports only reading from XML." <<
Endl;
263 val +=
m->GetMvaValue(err, errUpper);
296 auto methodValues =
m->GetMulticlassValues();
297 for (
size_t i = 0;
i < methodValues.size(); ++
i) {
338 auto methodValues =
m->GetRegressionValues();
339 for (
size_t i = 0;
i < methodValues.size(); ++
i) {
373 <<
"Method CrossValidation should not be created manually,"
374 " only as part of using TMVA::Reader."
402 Log() << kWARNING <<
"MakeClassSpecific not implemented for CrossValidation" <<
Endl;
410 Log() << kWARNING <<
"MakeClassSpecificHeader not implemented for CrossValidation" <<
Endl;
#define REGISTER_METHOD(CLASS)
for example
R__EXTERN TSystem * gSystem
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
virtual void DeclareCompatibilityOptions()
options that are used ONLY for the READER to ensure backward compatibility they are hence without any...
const char * GetName() const
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
std::vector< Float_t > fMulticlassValues
std::unique_ptr< CvSplitKFoldsExpr > fSplitExpr
void GetHelpMessage() const
void MakeClassSpecific(std::ostream &, const TString &) const
Make ROOT-independent C++ class for classifier response (classifier-specific implementation).
void AddWeightsXMLTo(void *parent) const
Write weights to XML.
TString fEncapsulatedMethodName
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Init(void)
Common initialisation with defaults for the Method.
TString fEncapsulatedMethodTypeName
std::vector< MethodBase * > fEncapsulatedMethods
void MakeClassSpecificHeader(std::ostream &, const TString &) const
Specific class header.
TString fOutputEnsembling
void Reset(void)
Reset the method, as if it had just been instantiated (forget all training etc.).
const Ranking * CreateRanking()
TString GetWeightFileNameForFold(UInt_t iFold) const
Returns filename of weight file for a given fold.
const std::vector< Float_t > & GetRegressionValues()
Get the regression value generated by the containing methods.
MethodBase * InstantiateMethodFromXML(TString methodTypeName, TString weightfile) const
Reads in a weight file an instantiates the corresponding method.
void Train(void)
Call the Optimizer with the set of parameters and ranges that are meant to be tuned.
const std::vector< Float_t > & GetMulticlassValues()
Get the multiclass MVA response.
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr)
std::map< const TMVA::Event *, UInt_t > fEventToFoldMapping
void ReadWeightsFromXML(void *parent)
Reads from the xml file.
void DeclareCompatibilityOptions()
Options that are used ONLY for the READER to ensure backward compatibility.
void WriteMonitoringHistosToFile(void) const
write special monitoring histograms to file dummy implementation here --------------—
virtual ~MethodCrossValidation(void)
Destructor.
void ReadWeightsFromStream(std::istream &istr)
Read the weights.
void ProcessOptions()
The option string is decoded, for available options see "DeclareOptions".
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)