26 #ifndef ROOT_TMVA_MethodKNN 27 #define ROOT_TMVA_MethodKNN 41 #ifndef ROOT_TMVA_MethodBase 44 #ifndef ROOT_TMVA_ModulekNN 67 const TString& theOption =
"KNN");
79 const std::vector<Float_t>& GetRegressionValues();
83 void WriteWeightsToStream(
TFile& rf)
const;
84 void AddWeightsXMLTo(
void* parent )
const;
85 void ReadWeightsFromXML(
void* wghtnode );
87 void ReadWeightsFromStream(std::istream& istr);
88 void ReadWeightsFromStream(
TFile &rf);
95 void MakeClassSpecific( std::ostream&,
const TString& )
const;
98 void GetHelpMessage()
const;
103 void DeclareOptions();
104 void ProcessOptions();
105 void DeclareCompatibilityOptions();
111 void MakeKNN(
void );
118 const std::vector<Double_t> getRMS(
const kNN::List &rlist,
const kNN::Event &event_knn)
const;
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
std::vector< TMVA::kNN::Event > EventVec
LDA fLDA
(untouched) events used for learning
Int_t fTreeOptDepth
Experimental feature for local knn analysis.
Abstract ClassifierFactory template that handles arbitrary types.
virtual void ReadWeightsFromStream(std::istream &)=0
Int_t fnkNN
module where all work is done