00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef ROOT_TMVA_MethodBayesClassifier
00029 #define ROOT_TMVA_MethodBayesClassifier
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef ROOT_TMVA_MethodBase
00040 #include "TMVA/MethodBase.h"
00041 #endif
00042 #ifndef ROOT_TMVA_Types
00043 #include "TMVA/Types.h"
00044 #endif
00045
00046 namespace TMVA {
00047
00048 class MethodBayesClassifier : public MethodBase {
00049
00050 public:
00051
00052 MethodBayesClassifier( const TString& jobName,
00053 const TString& methodTitle,
00054 DataSetInfo& theData,
00055 const TString& theOption = "",
00056 TDirectory* theTargetDir = 0 );
00057
00058 MethodBayesClassifier( DataSetInfo& theData,
00059 const TString& theWeightFile,
00060 TDirectory* theTargetDir = NULL );
00061
00062 virtual ~MethodBayesClassifier( void );
00063
00064 virtual Bool_t HasAnalysisType( Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets );
00065
00066
00067 void Train( void );
00068
00069 using MethodBase::ReadWeightsFromStream;
00070
00071
00072 void AddWeightsXMLTo( void* parent ) const;
00073
00074
00075 void ReadWeightsFromStream( istream& istr );
00076 void ReadWeightsFromXML ( void* ) {}
00077
00078
00079 Double_t GetMvaValue( Double_t* err = 0, Double_t* errUpper = 0 );
00080
00081 void Init( void );
00082
00083
00084 const Ranking* CreateRanking() { return 0; }
00085
00086 protected:
00087
00088
00089 void MakeClassSpecific( std::ostream&, const TString& ) const;
00090
00091
00092 void GetHelpMessage() const;
00093
00094 private:
00095
00096
00097 void DeclareOptions();
00098 void ProcessOptions();
00099
00100 ClassDef(MethodBayesClassifier,0)
00101 };
00102
00103 }
00104
00105 #endif // MethodBayesClassifier_H