ROOT
6.06/09
Reference Guide
|
Public Member Functions | |
Rule (RuleEnsemble *re, const std::vector< const TMVA::Node * > &nodes) | |
the main constructor for a Rule More... | |
Rule (RuleEnsemble *re) | |
the simple constructor More... | |
Rule (const Rule &other) | |
Rule () | |
the simple constructor More... | |
virtual | ~Rule () |
destructor More... | |
void | SetMsgType (EMsgType t) |
void | SetRuleEnsemble (const RuleEnsemble *re) |
void | SetRuleCut (RuleCut *rc) |
void | SetNorm (Double_t norm) |
void | SetCoefficient (Double_t v) |
void | SetSupport (Double_t v) |
void | SetSSB (Double_t v) |
void | SetSSBNeve (Double_t v) |
void | SetImportanceRef (Double_t v) |
void | CalcImportance () |
Double_t | GetRelImportance () const |
Bool_t | EvalEvent (const Event &e) const |
Bool_t | Equal (const Rule &other, Bool_t useCutValue, Double_t maxdist) const |
Compare two rules. More... | |
Double_t | RuleDist (const Rule &other, Bool_t useCutValue) const |
Returns: -1.0 : rules are NOT equal, i.e, variables and/or cut directions are wrong >=0: rules are equal apart from the cutvalue, returns d = sqrt(sum(c1-c2)^2) If not useCutValue, the distance is exactly zero if they are equal. More... | |
Double_t | GetSSB () const |
Double_t | GetSSBNeve () const |
Bool_t | IsSignalRule () const |
void | operator= (const Rule &other) |
Bool_t | operator== (const Rule &other) const |
comparison operator == More... | |
Bool_t | operator< (const Rule &other) const |
comparison operator < More... | |
UInt_t | GetNumVarsUsed () const |
UInt_t | GetNcuts () const |
Bool_t | ContainsVariable (UInt_t iv) const |
check if variable in node More... | |
const RuleCut * | GetRuleCut () const |
const RuleEnsemble * | GetRuleEnsemble () const |
Double_t | GetCoefficient () const |
Double_t | GetSupport () const |
Double_t | GetSigma () const |
Double_t | GetNorm () const |
Double_t | GetImportance () const |
Double_t | GetImportanceRef () const |
void | PrintLogger (const char *title=0) const |
print function More... | |
void | PrintRaw (std::ostream &os) const |
extensive print function used to print info for the weight file More... | |
void * | AddXMLTo (void *parent) const |
void | ReadRaw (std::istream &os) |
read function (format is the same as written by PrintRaw) More... | |
void | ReadFromXML (void *wghtnode) |
read rule from XML More... | |
Private Member Functions | |
void | SetSigma (Double_t v) |
void | Print (std::ostream &os) const |
print function More... | |
void | Copy (const Rule &other) |
copy function More... | |
const TString & | GetVarName (Int_t i) const |
returns the name of a rule More... | |
MsgLogger & | Log () const |
message logger More... | |
Private Attributes | |
RuleCut * | fCut |
Double_t | fNorm |
Double_t | fSupport |
Double_t | fSigma |
Double_t | fCoefficient |
Double_t | fImportance |
Double_t | fImportanceRef |
const RuleEnsemble * | fRuleEnsemble |
Double_t | fSSB |
Double_t | fSSBNeve |
MsgLogger * | fLogger |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Rule &rule) |
#include <TMVA/Rule.h>
TMVA::Rule::Rule | ( | RuleEnsemble * | re, |
const std::vector< const TMVA::Node * > & | nodes | ||
) |
TMVA::Rule::Rule | ( | RuleEnsemble * | re | ) |
|
inline |
Definition at line 105 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
check if variable in node
Definition at line 131 of file Rule.cxx.
Referenced by TMVA::RuleFit::FillVisHistCorr(), and TMVA::RuleFit::FillVisHistCut().
Compare two rules.
useCutValue: true -> calculate a distance between the two rules based on the cut values if the rule cuts are not equal, the distance is < 0 (-1.0) return true if d<mindist false->=""> ignore mindist, return true if rules are equal, ignoring cut values mindist: min distance allowed between rules; if < 0 => set useCutValue=false;
Definition at line 164 of file Rule.cxx.
Referenced by TMVA::RuleEnsemble::RemoveSimilarRules().
|
inline |
Definition at line 147 of file Rule.h.
Referenced by Copy(), TMVA::RuleFit::FillCorr(), TMVA::RuleFit::FillCut(), and TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inline |
Definition at line 151 of file Rule.h.
Referenced by TMVA::RuleFit::FillCorr(), TMVA::RuleFit::FillCut(), TMVA::RuleFit::FillVisHistCorr(), operator<(), and TMVA::RuleFitAPI::ReadModelSum().
|
inline |
|
inline |
Definition at line 139 of file Rule.h.
Referenced by TMVA::RuleFit::MakeDebugHists().
|
inline |
|
inline |
Definition at line 136 of file Rule.h.
Referenced by TMVA::RuleFit::MakeDebugHists().
|
inline |
Definition at line 108 of file Rule.h.
Referenced by TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inline |
Definition at line 145 of file Rule.h.
Referenced by Copy(), TMVA::RuleFit::FillCorr(), TMVA::RuleFit::FillCut(), RuleDist(), and TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inline |
Definition at line 146 of file Rule.h.
Referenced by Copy(), and TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inline |
Definition at line 149 of file Rule.h.
Referenced by Copy(), and TMVA::RuleFitAPI::ReadModelSum().
|
inline |
Definition at line 123 of file Rule.h.
Referenced by Copy(), and TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inline |
|
inline |
Definition at line 148 of file Rule.h.
Referenced by Copy(), TMVA::RuleFit::FillCorr(), TMVA::RuleFit::FillCut(), and TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inline |
Definition at line 125 of file Rule.h.
Referenced by TMVA::MethodRuleFit::TrainTMVARuleFit().
|
inlineprivate |
|
private |
void TMVA::Rule::PrintLogger | ( | const char * | title = 0 | ) | const |
void TMVA::Rule::PrintRaw | ( | std::ostream & | os | ) | const |
void TMVA::Rule::ReadRaw | ( | std::istream & | os | ) |
Returns: -1.0 : rules are NOT equal, i.e, variables and/or cut directions are wrong >=0: rules are equal apart from the cutvalue, returns d = sqrt(sum(c1-c2)^2) If not useCutValue, the distance is exactly zero if they are equal.
Definition at line 183 of file Rule.cxx.
Referenced by TMVA::RuleFit::MakeDebugHists().
Definition at line 90 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
Definition at line 102 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
Definition at line 148 of file Rule.cxx.
Referenced by TMVA::RuleEnsemble::MakeTheRule().
Definition at line 87 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
Definition at line 84 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
|
inline |
Definition at line 96 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
Definition at line 99 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
Definition at line 93 of file Rule.h.
Referenced by TMVA::RuleFitAPI::ReadModelSum().
|
friend |
|
private |
Definition at line 182 of file Rule.h.
Referenced by CalcImportance(), GetCoefficient(), and SetCoefficient().
|
private |
Definition at line 178 of file Rule.h.
Referenced by EvalEvent(), GetNcuts(), GetNumVarsUsed(), GetRuleCut(), Rule(), and SetRuleCut().
|
private |
Definition at line 183 of file Rule.h.
Referenced by CalcImportance(), GetImportance(), and GetRelImportance().
|
private |
Definition at line 184 of file Rule.h.
Referenced by GetImportanceRef(), GetRelImportance(), and SetImportanceRef().
|
mutableprivate |
|
private |
|
private |
Definition at line 185 of file Rule.h.
Referenced by GetRuleEnsemble(), and SetRuleEnsemble().
|
private |
Definition at line 181 of file Rule.h.
Referenced by CalcImportance(), GetSigma(), SetSigma(), and SetSupport().
|
private |
|
private |
Definition at line 187 of file Rule.h.
Referenced by GetSSBNeve(), Rule(), and SetSSBNeve().
|
private |
Definition at line 180 of file Rule.h.
Referenced by GetSupport(), and SetSupport().