1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef _NICE_OBJREC_KCONEVSALLINCLUDE
- #define _NICE_OBJREC_KCONEVSALLINCLUDE
- #include "vislearning/classifier/classifierbase/KernelClassifier.h"
- namespace OBJREC {
-
- #undef ROADWORKS
- #define ROADWORKS fthrow(Exception, "Persistent interface not implemented!");
- class KCOneVsAll : public KernelClassifier
- {
- protected:
- std::vector< std::pair<int, KernelClassifier *> > classifiers;
- const KernelClassifier *prototype;
- double noiseSigma;
- bool verbose;
- public:
-
-
- KCOneVsAll( const NICE::Config *conf, const KernelClassifier *prototype, const std::string & section = "KCOneVsAll" );
-
-
- virtual ~KCOneVsAll();
-
-
- 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
|