26 #ifndef ROOT_TMVA_MethodRuleFit
27 #define ROOT_TMVA_MethodRuleFit
220 if (var>vmax)
return 1;
221 if (var<vmin)
return -1;
242 mlog << kWARNING <<
"Option <" << varstr <<
"> " << (dir==1 ?
"above":
"below") <<
" allowed range. Reset to new value = " << var <<
Endl;
260 mlog << kWARNING <<
"Option <" << varstr <<
"> " << (dir==1 ?
"above":
"below") <<
" allowed range. Reset to default value = " << var <<
Endl;
266 #endif // MethodRuleFit_H
void DeclareOptions()
define the options (their key words) that can be set in the option string know options.
void Init(void)
default initialization
J Friedman's RuleFit method.
void ReadWeightsFromXML(void *wghtnode)
read rules from XML node
MsgLogger & Endl(MsgLogger &ml)
Double_t GetGDValidEveFrac() const
void ReadWeightsFromStream(std::istream &istr)
read rules from an std::istream
A class implementing various fits of rule ensembles.
void InitMonitorNtuple()
initialize the monitoring ntuple
const std::vector< TMVA::DecisionTree * > & GetForest() const
Virtual base Class for all MVA method.
const TString GetRFWorkDir() const
void WriteMonitoringHistosToFile(void) const
write special monitoring histograms to file (here ntuple)
Ranking for variables in method (implementation)
const Ranking * CreateRanking()
computes ranking of input variables
void TrainJFRuleFit()
training of rules using Jerome Friedmans implementation
TDirectory * GetMethodBaseDir() const
Int_t GetRFNendnodes() const
Int_t GetGDNPathSteps() const
MethodRuleFit(const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
standard constructor
Double_t GetMvaValue(Double_t *err=0, Double_t *errUpper=0)
returns MVA value for given event
const std::vector< TMVA::Event * > & GetTrainingEvents() const
TMVA::DecisionTree::EPruneMethod fPruneMethod
#define ClassDef(name, id)
void ProcessOptions()
process the options specified by the user
void MakeClassLinear(std::ostream &) const
print out the linear terms
Double_t GetGDPathStep() const
Double_t GetMinFracNEve() const
std::vector< TMVA::Event * > fEventSample
Class that contains all the data information.
void TrainTMVARuleFit()
training of rules using TMVA implementation
const RuleFit * GetRuleFitConstPtr() const
SeparationBase * fSepType
void AddWeightsXMLTo(void *parent) const
add the rules to XML node
Double_t GetGDErrScale() const
Double_t GetMaxFracNEve() const
An interface to calculate the "SeparationGain" for different separation criteria used in various trai...
RuleFit * GetRuleFitPtr()
Bool_t VerifyRange(MsgLogger &mlog, const char *varstr, T &var, const T &vmin, const T &vmax)
void GetHelpMessage() const
get help message text
Describe directory structure in memory.
TDirectory * BaseDir() const
returns the ROOT directory where info/histograms etc of the corresponding MVA method instance are sto...
Double_t GetLinQuantile() const
TMVA::DecisionTree::EPruneMethod GetPruneMethod() const
const SeparationBase * GetSeparationBaseConst() const
ostringstream derivative to redirect and format output
Double_t GetTreeEveFrac() const
SeparationBase * GetSeparationBase() const
void MakeClassSpecific(std::ostream &, const TString &) const
write specific classifier response
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.
Int_t GetRFNrules() const
virtual ~MethodRuleFit(void)
destructor
Double_t GetPruneStrength() const
virtual void ReadWeightsFromStream(std::istream &)=0
std::vector< DecisionTree * > fForest
Double_t GetGDPathEveFrac() const
void InitEventSample(void)
write all Events from the Tree into a vector of Events, that are more easily manipulated.
void MakeClassRuleCuts(std::ostream &) const
print out the rule cuts