14 #ifndef ROOT_TMVA_RMethodRSVM
15 #define ROOT_TMVA_RMethodRSVM
32 class MethodRSVM :
public RMethodBase {
37 MethodRSVM(
const TString &jobName,
38 const TString &methodTitle,
40 const TString &theOption =
"");
42 MethodRSVM(DataSetInfo &dsi,
43 const TString &theWeightFile);
50 void DeclareOptions();
51 void ProcessOptions();
53 const Ranking *CreateRanking()
59 Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets);
62 virtual void TestClassification();
65 Double_t GetMvaValue(Double_t *errLower = 0, Double_t *errUpper = 0);
67 using MethodBase::ReadWeightsFromStream;
69 virtual void AddWeightsXMLTo(
void * )
const {}
70 virtual void ReadWeightsFromXML(
void * ) {}
71 virtual void ReadWeightsFromStream(std::istream &) {}
72 void ReadModelFromFile();
75 virtual std::vector<Double_t> GetMvaValues(Long64_t firstEvt = 0, Long64_t lastEvt = -1, Bool_t logProgress =
false);
78 DataSetManager *fDataSetManager;
83 std::vector<Float_t> fProbResultForTrainSig;
84 std::vector<Float_t> fProbResultForTestSig;
126 static Bool_t IsModuleLoaded;
127 ROOT::R::TRFunctionImport svm;
128 ROOT::R::TRFunctionImport predict;
129 ROOT::R::TRFunctionImport asfactor;
130 ROOT::R::TRObject *fModel;
132 void GetHelpMessage()
const;
134 ClassDef(MethodRSVM, 0)