Warning, file /include/root/TMVA/SVWorkingSet.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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_SVWorkingSet
0029 #define ROOT_TMVA_SVWorkingSet
0030
0031 #include <vector>
0032
0033 #include "RtypesCore.h"
0034
0035 namespace TMVA {
0036
0037 class SVEvent;
0038 class SVKernelMatrix;
0039 class SVKernelFunction;
0040 class MsgLogger;
0041
0042 class SVWorkingSet {
0043
0044 public:
0045
0046 SVWorkingSet();
0047 SVWorkingSet( std::vector<TMVA::SVEvent*>*, SVKernelFunction*, Float_t , Bool_t);
0048 ~SVWorkingSet();
0049
0050 Bool_t ExamineExample( SVEvent*);
0051 Bool_t TakeStep ( SVEvent*, SVEvent*);
0052 Bool_t Terminated();
0053 void Train(UInt_t nIter=1000);
0054 std::vector<TMVA::SVEvent*>* GetSupportVectors();
0055 Float_t GetBpar() {return 0.5*(fB_low + fB_up);}
0056
0057
0058 Bool_t ExamineExampleReg(SVEvent*);
0059 Bool_t TakeStepReg(SVEvent*, SVEvent*);
0060 Bool_t IsDiffSignificant(Float_t, Float_t, Float_t);
0061 void TrainReg();
0062
0063
0064 void SetIPythonInteractive(bool* ExitFromTraining, UInt_t *fIPyCurrentIter_){
0065 fExitFromTraining = ExitFromTraining;
0066 fIPyCurrentIter = fIPyCurrentIter_;
0067 }
0068
0069
0070 private:
0071
0072 Bool_t fdoRegression;
0073 std::vector<TMVA::SVEvent*> *fInputData;
0074 std::vector<TMVA::SVEvent*> *fSupVec;
0075 SVKernelFunction *fKFunction;
0076 SVKernelMatrix *fKMatrix;
0077
0078 SVEvent *fTEventUp;
0079 SVEvent *fTEventLow;
0080
0081 Float_t fB_low;
0082 Float_t fB_up;
0083 Float_t fTolerance;
0084
0085 mutable MsgLogger* fLogger;
0086
0087
0088 UInt_t *fIPyCurrentIter = nullptr;
0089 bool * fExitFromTraining = nullptr;
0090
0091 void SetIndex( TMVA::SVEvent* );
0092 };
0093 }
0094
0095 #endif