26 #ifndef ROOT_TMVA_MethodRuleFit 27 #define ROOT_TMVA_MethodRuleFit 37 #ifndef ROOT_TMVA_MethodBase 40 #ifndef ROOT_TMatrixDfwd 46 #ifndef ROOT_TMVA_DecisionTree 49 #ifndef ROOT_TMVA_RuleFit 230 if (var>vmax)
return 1;
231 if (var<vmin)
return -1;
252 mlog <<
kWARNING <<
"Option <" << varstr <<
"> " << (dir==1 ?
"above":
"below") <<
" allowed range. Reset to new value = " << var <<
Endl;
270 mlog <<
kWARNING <<
"Option <" << varstr <<
"> " << (dir==1 ?
"above":
"below") <<
" allowed range. Reset to default value = " << var <<
Endl;
276 #endif // MethodRuleFit_H const std::vector< TMVA::Event * > & GetTrainingEvents() const
void DeclareOptions()
define the options (their key words) that can be set in the option string know options.
void Init(void)
default initialization
void ReadWeightsFromXML(void *wghtnode)
read rules from XML node
Double_t GetTreeEveFrac() const
MsgLogger & Endl(MsgLogger &ml)
Double_t GetGDErrScale() const
void WriteMonitoringHistosToFile(void) const
write special monitoring histograms to file (here ntuple)
void ReadWeightsFromStream(std::istream &istr)
read rules from an std::istream
void InitMonitorNtuple()
initialize the monitoring ntuple
Double_t GetGDValidEveFrac() const
const Ranking * CreateRanking()
computes ranking of input variables
void TrainJFRuleFit()
training of rules using Jerome Friedmans implementation
MethodRuleFit(const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
standard constructor
const std::vector< TMVA::DecisionTree * > & GetForest() const
Double_t GetMvaValue(Double_t *err=0, Double_t *errUpper=0)
returns MVA value for given event
Double_t GetGDPathStep() const
TMVA::DecisionTree::EPruneMethod fPruneMethod
#define ClassDef(name, id)
void ProcessOptions()
process the options specified by the user
TMVA::DecisionTree::EPruneMethod GetPruneMethod() const
void MakeClassSpecific(std::ostream &, const TString &) const
write specific classifier response
void MakeClassLinear(std::ostream &) const
print out the linear terms
std::vector< TMVA::Event * > fEventSample
SeparationBase * GetSeparationBase() const
void TrainTMVARuleFit()
training of rules using TMVA implementation
Double_t GetPruneStrength() const
SeparationBase * fSepType
Double_t GetGDPathEveFrac() const
Int_t GetRFNrules() const
Double_t GetLinQuantile() const
RuleFit * GetRuleFitPtr()
const SeparationBase * GetSeparationBaseConst() const
Int_t GetRFNendnodes() const
void GetHelpMessage() const
get help message text
Bool_t VerifyRange(MsgLogger &mlog, const char *varstr, T &var, const T &vmin, const T &vmax)
const TString GetRFWorkDir() const
const RuleFit * GetRuleFitConstPtr() const
Int_t GetGDNPathSteps() const
Describe directory structure in memory.
Abstract ClassifierFactory template that handles arbitrary types.
TDirectory * BaseDir() const
returns the ROOT directory where info/histograms etc of the corresponding MVA method instance are sto...
TDirectory * GetMethodBaseDir() const
A TTree object has a header with a name and a title.
virtual Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t)
RuleFit can handle classification with 2 classes.
virtual ~MethodRuleFit(void)
destructor
void MakeClassRuleCuts(std::ostream &) const
print out the rule cuts
virtual void ReadWeightsFromStream(std::istream &)=0
std::vector< DecisionTree * > fForest
void AddWeightsXMLTo(void *parent) const
add the rules to XML node
Double_t GetMaxFracNEve() const
void InitEventSample(void)
write all Events from the Tree into a vector of Events, that are more easily manipulated.
Double_t GetMinFracNEve() const