1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef VCAMITSVMINCLUDE
- #define VCAMITSVMINCLUDE
- #include "core/vector/VectorT.h"
- #include "core/vector/MatrixT.h"
- #include "VCLearnFromSC.h"
- namespace OBJREC
- {
- class VCAmitSVM : public VCLearnFromSC
- {
- protected:
- double C;
- double gamma;
- std::string amitDir;
- std::string matlabExec;
- std::string matlabArgs;
- public:
- NICE::Matrix W;
-
- VCAmitSVM ( const NICE::Config *conf );
-
- virtual ~VCAmitSVM();
-
- virtual ClassificationResult classify ( const NICE::Vector & x ) const;
- virtual void preTeach ( const LabeledSetVector & teachSet );
- virtual void teach ( const LabeledSetVector & teachSet );
- virtual void finishTeaching() {};
- void restore ( std::istream & is, int format = 0 );
- void store ( std::ostream & is, int format = 0 ) const;
- void clear ();
- };
- }
- #endif
|