123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef _NICE_OBJREC_KCONEVSALLINCLUDE
- #define _NICE_OBJREC_KCONEVSALLINCLUDE
- #include "vislearning/classifier/classifierbase/KernelClassifier.h"
- namespace OBJREC
- {
- #undef ROADWORKS
- #define ROADWORKS fthrow(NICE::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
|