/usr/include/root/TMVA/SVWorkingSet.h is in libroot-tmva-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | // @(#)root/tmva $Id$
// Author: Andrzej Zemla
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA *
* Class : SVWorkingSet *
* Web : http://tmva.sourceforge.net *
* *
* Description: *
* Working class for Support Vector Machine *
* *
* Authors (alphabetical): *
* Marcin Wolter <Marcin.Wolter@cern.ch> - IFJ PAN, Krakow, Poland *
* Andrzej Zemla <azemla@cern.ch> - IFJ PAN, Krakow, Poland *
* (IFJ PAN: Henryk Niewodniczanski Inst. Nucl. Physics, Krakow, Poland) *
* *
* Copyright (c) 2005: *
* CERN, Switzerland *
* MPI-K Heidelberg, Germany *
* PAN, Krakow, Poland *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted according to the terms listed in LICENSE *
* (http://tmva.sourceforge.net/LICENSE) *
**********************************************************************************/
#ifndef ROOT_TMVA_SVWorkingSet
#define ROOT_TMVA_SVWorkingSet
#include <vector>
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
namespace TMVA {
class SVEvent;
class SVKernelMatrix;
class SVKernelFunction;
class MsgLogger;
class SVWorkingSet {
public:
SVWorkingSet();
SVWorkingSet( std::vector<TMVA::SVEvent*>*, SVKernelFunction*, Float_t , Bool_t);
~SVWorkingSet();
Bool_t ExamineExample( SVEvent*);
Bool_t TakeStep ( SVEvent*, SVEvent*);
Bool_t Terminated();
void Train(UInt_t nIter=1000);
void PrintStat();
std::vector<TMVA::SVEvent*>* GetSupportVectors();
Float_t GetBpar() {return 0.5*(fB_low + fB_up);}
//for regression
Bool_t ExamineExampleReg(SVEvent*);
Bool_t TakeStepReg(SVEvent*, SVEvent*);
Bool_t IsDiffSignificant(Float_t, Float_t, Float_t);
void TrainReg();
private:
Bool_t fdoRegression; //TODO temporary, find nicer solution
std::vector<TMVA::SVEvent*> *fInputData; // input events
std::vector<TMVA::SVEvent*> *fSupVec; // output events - support vectors
SVKernelFunction *fKFunction; // kernel function
SVKernelMatrix *fKMatrix; // kernel matrix
SVEvent *fTEventUp; // last optimized event
SVEvent *fTEventLow; // last optimized event
Float_t fB_low; // documentation
Float_t fB_up; // documentation
Float_t fTolerance; // documentation
mutable MsgLogger* fLogger; //! message logger
void SetIndex( TMVA::SVEvent* );
};
}
#endif //ROOT_TMVA_SVWorkingSet
|