J Friedman's RuleFit method. 
Definition at line 51 of file RuleFitAPI.h.
 | 
| void  | FillIntParmsDef () | 
|   | set default int params  
  | 
|   | 
| void  | FillRealParmsDef () | 
|   | set default real params  
  | 
|   | 
| TString  | GetRFName (TString name) | 
|   | 
| void  | ImportSetup () | 
|   | import setup from MethodRuleFit  
  | 
|   | 
| void  | InitRuleFit () | 
|   | default initialisation SetRFWorkDir("./rulefit");  
  | 
|   | 
| Bool_t  | OpenRFile (TString name, std::ifstream &f) | 
|   | 
| Bool_t  | OpenRFile (TString name, std::ofstream &f) | 
|   | 
| Int_t  | ReadFloat (std::ifstream &f, Float_t *v, Int_t n=1) const | 
|   | 
| Int_t  | ReadInt (std::ifstream &f, Int_t *v, Int_t n=1) const | 
|   | 
| Bool_t  | ReadIntParms () | 
|   | 
| Bool_t  | ReadLx () | 
|   | 
| Bool_t  | ReadProgram () | 
|   | 
| Bool_t  | ReadRealParms () | 
|   | 
| Bool_t  | ReadRealVarImp () | 
|   | 
| Bool_t  | ReadRfOut () | 
|   | 
| Bool_t  | ReadRfStatus () | 
|   | 
| Bool_t  | ReadRuleFitMod () | 
|   | 
| Bool_t  | ReadRuleFitSum () | 
|   | 
| Bool_t  | ReadTrainW () | 
|   | 
| Bool_t  | ReadTrainX () | 
|   | 
| Bool_t  | ReadTrainY () | 
|   | 
| Bool_t  | ReadVarImp () | 
|   | read variable importance  
  | 
|   | 
| Bool_t  | ReadVarNames () | 
|   | 
| Bool_t  | ReadYhat () | 
|   | read the score  
  | 
|   | 
| Int_t  | RunRuleFit () | 
|   | execute rf_go.exe  
  | 
|   | 
| void  | SetRFPredict () | 
|   | 
| void  | SetRFTrain () | 
|   | 
| void  | SetRFVarimp () | 
|   | 
| void  | SetTestParms () | 
|   | set the test params  
  | 
|   | 
| void  | SetTrainParms () | 
|   | set the training parameters  
  | 
|   | 
| Bool_t  | WriteAll () | 
|   | write all files read by rf_go.exe  
  | 
|   | 
| Bool_t  | WriteFloat (std::ofstream &f, const Float_t *v, Int_t n=1) | 
|   | 
| Bool_t  | WriteInt (std::ofstream &f, const Int_t *v, Int_t n=1) | 
|   | 
| Bool_t  | WriteIntParms () | 
|   | write int params file  
  | 
|   | 
| Bool_t  | WriteLx () | 
|   | Save input variable mask.  
  | 
|   | 
| Bool_t  | WriteProgram () | 
|   | write command to rf_go.exe  
  | 
|   | 
| Bool_t  | WriteRealParms () | 
|   | write int params file  
  | 
|   | 
| Bool_t  | WriteRealVarImp () | 
|   | write the minimum importance to be considered  
  | 
|   | 
| Bool_t  | WriteRfOut () | 
|   | written by rf_go.exe; write rulefit output (rfout)  
  | 
|   | 
| Bool_t  | WriteRfStatus () | 
|   | written by rf_go.exe; write rulefit status  
  | 
|   | 
| Bool_t  | WriteRuleFitMod () | 
|   | written by rf_go.exe (NOTE:Format unknown!)  
  | 
|   | 
| Bool_t  | WriteRuleFitSum () | 
|   | written by rf_go.exe (NOTE: format unknown!)  
  | 
|   | 
| Bool_t  | WriteTest () | 
|   | Write test data.  
  | 
|   | 
| Bool_t  | WriteTrain () | 
|   | write training data, column wise  
  | 
|   | 
| Bool_t  | WriteVarImp () | 
|   | 
| Bool_t  | WriteVarNames () | 
|   | write variable names, ascii  
  | 
|   | 
| Bool_t  | WriteYhat () | 
|   | written by rf_go.exe  
  | 
|   | 
#include <TMVA/RuleFitAPI.h>
◆ EModel
| Enumerator | 
|---|
| kRfLinear  |  | 
| kRfRules  |  | 
| kRfBoth  |  | 
Definition at line 85 of file RuleFitAPI.h.
 
 
◆ ERFMode
| Enumerator | 
|---|
| kRfRegress  |  | 
| kRfClass  |  | 
Definition at line 84 of file RuleFitAPI.h.
 
 
◆ ERFProgram
| Enumerator | 
|---|
| kRfTrain  |  | 
| kRfPredict  |  | 
| kRfVarimp  |  | 
Definition at line 86 of file RuleFitAPI.h.
 
 
◆ RuleFitAPI() [1/2]
◆ ~RuleFitAPI()
  
  
      
        
          | TMVA::RuleFitAPI::~RuleFitAPI  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ RuleFitAPI() [2/2]
  
  
      
        
          | TMVA::RuleFitAPI::RuleFitAPI  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ CheckRFWorkDir()
      
        
          | void TMVA::RuleFitAPI::CheckRFWorkDir  | 
          ( | 
           | ) | 
           | 
        
      
 
check if the rulefit work dir is properly setup. 
it aborts (kFATAL) if not.
Check existence of directory 
Definition at line 166 of file RuleFitAPI.cxx.
 
 
◆ Class()
- Returns
 - TClass describing this class 
 
 
 
◆ Class_Name()
- Returns
 - Name of this class 
 
 
 
◆ Class_Version()
◆ DeclFileName()
- Returns
 - Name of the file containing the class declaration 
 
Definition at line 195 of file RuleFitAPI.h.
 
 
◆ FillIntParmsDef()
  
  
      
        
          | void TMVA::RuleFitAPI::FillIntParmsDef  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ FillRealParmsDef()
  
  
      
        
          | void TMVA::RuleFitAPI::FillRealParmsDef  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ GetRFName()
◆ GetRFWorkDir()
◆ HowtoSetupRF()
      
        
          | void TMVA::RuleFitAPI::HowtoSetupRF  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ImportSetup()
  
  
      
        
          | void TMVA::RuleFitAPI::ImportSetup  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ InitRuleFit()
  
  
      
        
          | void TMVA::RuleFitAPI::InitRuleFit  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
default initialisation SetRFWorkDir("./rulefit"); 
Definition at line 122 of file RuleFitAPI.cxx.
 
 
◆ IsA()
◆ OpenRFile() [1/2]
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::OpenRFile  | 
          ( | 
          TString |           name,  | 
         
        
           | 
           | 
          std::ifstream & |           f ) | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ OpenRFile() [2/2]
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::OpenRFile  | 
          ( | 
          TString |           name,  | 
         
        
           | 
           | 
          std::ofstream & |           f ) | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ ReadFloat()
  
  
      
        
          | Int_t TMVA::RuleFitAPI::ReadFloat  | 
          ( | 
          std::ifstream & |           f,  | 
         
        
           | 
           | 
          Float_t * |           v,  | 
         
        
           | 
           | 
          Int_t |           n = 1 ) const | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ ReadInt()
  
  
      
        
          | Int_t TMVA::RuleFitAPI::ReadInt  | 
          ( | 
          std::ifstream & |           f,  | 
         
        
           | 
           | 
          Int_t * |           v,  | 
         
        
           | 
           | 
          Int_t |           n = 1 ) const | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ ReadIntParms()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadIntParms  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadLx()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadLx  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadModelSum()
      
        
          | Bool_t TMVA::RuleFitAPI::ReadModelSum  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ReadProgram()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadProgram  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadRealParms()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadRealParms  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadRealVarImp()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadRealVarImp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadRfOut()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadRfOut  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadRfStatus()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadRfStatus  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadRuleFitMod()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadRuleFitMod  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadRuleFitSum()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadRuleFitSum  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadTrainW()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadTrainW  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadTrainX()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadTrainX  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadTrainY()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadTrainY  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadVarImp()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadVarImp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadVarNames()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadVarNames  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ReadYhat()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::ReadYhat  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ RunRuleFit()
  
  
      
        
          | Int_t TMVA::RuleFitAPI::RunRuleFit  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ SetRFPredict()
  
  
      
        
          | void TMVA::RuleFitAPI::SetRFPredict  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ SetRFTrain()
  
  
      
        
          | void TMVA::RuleFitAPI::SetRFTrain  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ SetRFVarimp()
  
  
      
        
          | void TMVA::RuleFitAPI::SetRFVarimp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ SetRFWorkDir()
      
        
          | void TMVA::RuleFitAPI::SetRFWorkDir  | 
          ( | 
          const char * |           wdir | ) | 
           | 
        
      
 
set the directory containing rf_go.exe. 
Definition at line 155 of file RuleFitAPI.cxx.
 
 
◆ SetTestParms()
  
  
      
        
          | void TMVA::RuleFitAPI::SetTestParms  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ SetTrainParms()
  
  
      
        
          | void TMVA::RuleFitAPI::SetTrainParms  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ Streamer()
◆ StreamerNVirtual()
  
  
      
        
          | void TMVA::RuleFitAPI::StreamerNVirtual  | 
          ( | 
          TBuffer & |           ClassDef_StreamerNVirtual_b | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ TestRuleFit()
  
  
      
        
          | void TMVA::RuleFitAPI::TestRuleFit  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ TrainRuleFit()
  
  
      
        
          | void TMVA::RuleFitAPI::TrainRuleFit  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ VarImp()
  
  
      
        
          | void TMVA::RuleFitAPI::VarImp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ WelcomeMessage()
      
        
          | void TMVA::RuleFitAPI::WelcomeMessage  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ WriteAll()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteAll  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteFloat()
◆ WriteInt()
◆ WriteIntParms()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteIntParms  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteLx()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteLx  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Save input variable mask. 
If the lx vector size is not the same as inputVars, resize it and fill it with 1 NOTE: Always set all to 1 if (fRFLx.size() != m_inputVars->size()) { 
Definition at line 291 of file RuleFitAPI.cxx.
 
 
◆ WriteProgram()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteProgram  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteRealParms()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteRealParms  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteRealVarImp()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteRealVarImp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
write the minimum importance to be considered 
Definition at line 333 of file RuleFitAPI.cxx.
 
 
◆ WriteRfOut()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteRfOut  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
written by rf_go.exe; write rulefit output (rfout) 
Definition at line 347 of file RuleFitAPI.cxx.
 
 
◆ WriteRfStatus()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteRfStatus  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
written by rf_go.exe; write rulefit status 
Definition at line 356 of file RuleFitAPI.cxx.
 
 
◆ WriteRuleFitMod()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteRuleFitMod  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
written by rf_go.exe (NOTE:Format unknown!) 
Definition at line 365 of file RuleFitAPI.cxx.
 
 
◆ WriteRuleFitSum()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteRuleFitSum  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
written by rf_go.exe (NOTE: format unknown!) 
Definition at line 374 of file RuleFitAPI.cxx.
 
 
◆ WriteTest()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteTest  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteTrain()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteTrain  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteVarImp()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteVarImp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteVarNames()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteVarNames  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ WriteYhat()
  
  
      
        
          | Bool_t TMVA::RuleFitAPI::WriteYhat  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ fLogger
◆ fMethodRuleFit
parent method - set in constructor 
Definition at line 180 of file RuleFitAPI.h.
 
 
◆ fModelType
  
  
      
        
          | TString TMVA::RuleFitAPI::fModelType | 
         
       
   | 
  
private   | 
  
 
 
◆ fRFIntParms
◆ fRFLx
  
  
      
        
          | std::vector<int> TMVA::RuleFitAPI::fRFLx | 
         
       
   | 
  
private   | 
  
 
 
◆ fRFProgram
◆ fRFRealParms
◆ fRFVarImp
  
  
      
        
          | std::vector<Float_t> TMVA::RuleFitAPI::fRFVarImp | 
         
       
   | 
  
private   | 
  
 
 
◆ fRFVarImpInd
  
  
      
        
          | std::vector<Int_t> TMVA::RuleFitAPI::fRFVarImpInd | 
         
       
   | 
  
private   | 
  
 
 
◆ fRFWorkDir
  
  
      
        
          | TString TMVA::RuleFitAPI::fRFWorkDir | 
         
       
   | 
  
private   | 
  
 
 
◆ fRFYhat
  
  
      
        
          | std::vector<Float_t> TMVA::RuleFitAPI::fRFYhat | 
         
       
   | 
  
private   | 
  
 
score results from test sample 
Definition at line 183 of file RuleFitAPI.h.
 
 
◆ fRuleFit
  
  
      
        
          | RuleFit* TMVA::RuleFitAPI::fRuleFit | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: