47 REGISTER_METHOD(BayesClassifier)
49 ClassImp(TMVA::MethodBayesClassifier);
54 TMVA::MethodBayesClassifier::MethodBayesClassifier( const TString& jobName,
55 const TString& methodTitle,
57 const TString& theOption ) :
58 TMVA::MethodBase( jobName, Types::kBayesClassifier, methodTitle, theData, theOption)
65 TMVA::MethodBayesClassifier::MethodBayesClassifier( DataSetInfo& theData,
66 const TString& theWeightFile) :
67 TMVA::MethodBase( Types::kBayesClassifier, theData, theWeightFile)
74 Bool_t TMVA::MethodBayesClassifier::HasAnalysisType( Types::EAnalysisType type, UInt_t numberClasses, UInt_t )
76 if( type == Types::kClassification && numberClasses == 2 )
return kTRUE;
84 void TMVA::MethodBayesClassifier::Init(
void )
91 void TMVA::MethodBayesClassifier::DeclareOptions()
98 void TMVA::MethodBayesClassifier::ProcessOptions()
105 TMVA::MethodBayesClassifier::~MethodBayesClassifier(
void )
112 void TMVA::MethodBayesClassifier::Train(
void )
118 void TMVA::MethodBayesClassifier::AddWeightsXMLTo(
void* )
const {
119 Log() << kFATAL <<
"Please implement writing of weights as XML" << Endl;
125 void TMVA::MethodBayesClassifier::ReadWeightsFromStream( std::istream & )
132 Double_t TMVA::MethodBayesClassifier::GetMvaValue( Double_t* err, Double_t* errUpper )
137 NoErrorCalc(err, errUpper);
145 void TMVA::MethodBayesClassifier::MakeClassSpecific( std::ostream& fout,
const TString& className )
const
147 fout <<
" // not implemented for class: \"" << className <<
"\"" << std::endl;
148 fout <<
"};" << std::endl;
157 void TMVA::MethodBayesClassifier::GetHelpMessage()
const
160 Log() << gTools().Color(
"bold") <<
"--- Short description:" << gTools().Color(
"reset") << Endl;
162 Log() <<
"<None>" << Endl;
164 Log() << gTools().Color(
"bold") <<
"--- Performance optimisation:" << gTools().Color(
"reset") << Endl;
166 Log() <<
"<None>" << Endl;
168 Log() << gTools().Color(
"bold") <<
"--- Performance tuning via configuration options:" << gTools().Color(
"reset") << Endl;
170 Log() <<
"<None>" << Endl;