File indexing completed on 2025-01-18 10:11:00
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #ifndef ROOT_TMVA_MethodBayesClassifier
0029 #define ROOT_TMVA_MethodBayesClassifier
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 #include "TMVA/MethodBase.h"
0040 #include "TMVA/Types.h"
0041
0042 namespace TMVA {
0043
0044 class MethodBayesClassifier : public MethodBase {
0045
0046 public:
0047
0048 MethodBayesClassifier( const TString& jobName,
0049 const TString& methodTitle,
0050 DataSetInfo& theData,
0051 const TString& theOption = "");
0052
0053 MethodBayesClassifier( DataSetInfo& theData,
0054 const TString& theWeightFile);
0055
0056 virtual ~MethodBayesClassifier( void );
0057
0058 virtual Bool_t HasAnalysisType( Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets );
0059
0060
0061 void Train( void );
0062
0063 using MethodBase::ReadWeightsFromStream;
0064
0065
0066 void AddWeightsXMLTo( void* parent ) const;
0067
0068
0069 void ReadWeightsFromStream( std::istream& istr );
0070 void ReadWeightsFromXML ( void* ) {}
0071
0072
0073 Double_t GetMvaValue( Double_t* err = nullptr, Double_t* errUpper = nullptr );
0074
0075 void Init( void );
0076
0077
0078 const Ranking* CreateRanking() { return nullptr; }
0079
0080 protected:
0081
0082
0083 void MakeClassSpecific( std::ostream&, const TString& ) const;
0084
0085
0086 void GetHelpMessage() const;
0087
0088 private:
0089
0090
0091 void DeclareOptions();
0092 void ProcessOptions();
0093
0094 ClassDef(MethodBayesClassifier,0);
0095 };
0096
0097 }
0098
0099 #endif