1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef _NICE_OBJREC_KCGPLAPLACEONEVSALLINCLUDE
- #define _NICE_OBJREC_KCGPLAPLACEONEVSALLINCLUDE
- #include <vector>
- #include "vislearning/classifier/classifierbase/KernelClassifier.h"
- #include "vislearning/classifier/kernelclassifier/KCGPLaplace.h"
- #include "vislearning/classifier/kernelclassifier/LaplaceApproximation.h"
- #include "vislearning/regression/gpregression/modelselcrit/genericGPModelSelection.h"
- #include "vislearning/classifier/kernelclassifier/LikelihoodFunction.h"
- namespace OBJREC {
-
- #undef ROADWORKS
- #define ROADWORKS fthrow(Exception, "Persistent interface not implemented!");
- class KCGPLaplaceOneVsAll : public KernelClassifier
- {
- protected:
- NICE::Config confCopy;
- std::string confSection;
- bool optimizeParameters;
- bool verbose;
- int maxIterations;
-
- std::vector<LaplaceApproximation *> laplaceApproximations;
- LikelihoodFunction *likelihoodFunction;
- NICE::VVector ySetZeroMean;
- NICE::VectorT<int> classnos;
-
- bool useLooParameters;
- public:
-
-
- KCGPLaplaceOneVsAll( const NICE::Config *conf, Kernel *kernelFunction = NULL, const std::string & section = "KCGPLaplaceOneVsAll" );
-
-
- virtual ~KCGPLaplaceOneVsAll();
-
-
- void teach ( KernelData *kernelData, const NICE::Vector & y );
-
- ClassificationResult classifyKernel ( const NICE::Vector & kernelVector, double kernelSelf ) const;
- void restore(std::istream&, int) { ROADWORKS };
- void store(std::ostream&, int) const { ROADWORKS };
- void clear() { ROADWORKS };
- };
- #undef ROADWORKS
- }
- #endif
|