123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #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(NICE::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
|