30 #ifndef ROOT_TMVA_RuleFitAPI 31 #define ROOT_TMVA_RuleFitAPI 243 fLogger <<
kERROR <<
"Error opening RuleFit file for output: " 257 fLogger <<
kERROR <<
"Error opening RuleFit file for input: " 268 if (!f.is_open())
return kFALSE;
269 return (
Bool_t)f.write(reinterpret_cast<char const *>(v), n*
sizeof(
Int_t));
276 if (!f.is_open())
return kFALSE;
277 return (
Bool_t)f.write(reinterpret_cast<char const *>(v), n*
sizeof(
Float_t));
284 if (!f.is_open())
return 0;
285 if (f.read(reinterpret_cast<char *>(v), n*
sizeof(
Int_t)))
return 1;
293 if (!f.is_open())
return 0;
294 if (f.read(reinterpret_cast<char *>(v), n*
sizeof(
Float_t)))
return 1;
298 #endif // RuleFitAPI_H Bool_t WriteLx()
Save input variable mask.
TString GetRFName(TString name)
Bool_t ReadVarImp()
read variable importance
void WelcomeMessage()
welcome message
void HowtoSetupRF()
howto message
MsgLogger & Endl(MsgLogger &ml)
virtual ~RuleFitAPI()
destructor
Bool_t WriteRfStatus()
written by rf_go.exe; write rulefit status
void SetRFWorkDir(const char *wdir)
set the directory containing rf_go.exe.
Bool_t WriteAll()
write all files read by rf_go.exe
void FillIntParmsDef()
set default int params
Bool_t WriteTrain()
write training data, columnwise
const MethodRuleFit * fMethodRuleFit
Bool_t WriteRfOut()
written by rf_go.exe; write rulefit output (rfout)
Bool_t WriteIntParms()
write int params file
Bool_t WriteRealVarImp()
write the minimum importance to be considered
void ImportSetup()
import setup from MethodRuleFit
void CheckRFWorkDir()
check if the rulefit work dir is properly setup.
#define ClassDef(name, id)
std::vector< Float_t > fRFYhat
Bool_t WriteProgram()
write command to rf_go.exe
void FillRealParmsDef()
set default real params
Bool_t ReadModelSum()
read model from rulefit.sum
Int_t ReadInt(std::ifstream &f, Int_t *v, Int_t n=1) const
Bool_t WriteRuleFitMod()
written by rf_go.exe (NOTE:Format unknown!)
void SetTrainParms()
set the training parameters
Bool_t WriteInt(std::ofstream &f, const Int_t *v, Int_t n=1)
Int_t ReadFloat(std::ifstream &f, Float_t *v, Int_t n=1) const
void SetTestParms()
set the test params
Bool_t WriteFloat(std::ofstream &f, const Float_t *v, Int_t n=1)
std::vector< Float_t > fRFVarImp
Bool_t WriteVarNames()
write variable names, ascii
Bool_t WriteTest()
Write test data.
Bool_t OpenRFile(TString name, std::ofstream &f)
Abstract ClassifierFactory template that handles arbitrary types.
const TString GetRFWorkDir() const
Bool_t WriteYhat()
written by rf_go.exe
Bool_t WriteRuleFitSum()
written by rf_go.exe (NOTE: format unknown!)
Bool_t ReadYhat()
read the score
Int_t RunRuleFit()
execute rf_go.exe
Bool_t WriteRealParms()
write int params file
std::vector< Int_t > fRFVarImpInd
void InitRuleFit()
default initialisation SetRFWorkDir("./rulefit");