123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /**
- * @file FPCnone.h
- * @brief bad hack, not realy a classifier, returns the first values as classification result
- * @author Björn Fröhlich
- * @date 18/06/2010
- */
- #ifndef FPCnoneDEF
- #define FPCnoneDEF
- #include "vislearning/classifier/classifierbase/FeaturePoolClassifier.h"
- #include "vislearning/classifier/fpclassifier/logisticregression/SLR.h"
- #include "vislearning/cbaselib/FeaturePool.h"
- namespace OBJREC {
- class FPCnone : public FeaturePoolClassifier
- {
- protected:
- //! the featurepool
- FeaturePool fp;
- //! config file;
- const NICE::Config *conf;
- public:
- /**
- * standard constructor
- * @param conf configfile
- * @param section section name in configfile for classifier
- */
- FPCnone( const NICE::Config *conf, std::string section = "SMLR" );
- /**
- * simple constructor -> does nothing
- */
- FPCnone();
- /**
- * simple destructor
- */
- ~FPCnone();
- /**
- * main classification function
- * @param pce input feature
- * @return a classification result
- */
- ClassificationResult classify( Example & pce );
- /**
- * start training
- * @param fp a featurepool (how to handle which features...)
- * @param examples input features
- */
- void train( FeaturePool & _fp, Examples & examples );
- /**
- * clone this object
- * @return a copy of this object
- */
- FeaturePoolClassifier *clone() const;
- /**
- * set complexity for the next training process e.g. number of weak classifiers
- * @param size new complexity
- */
- void setComplexity( int size );
- /** IO functions */
- void restore( std::istream & is, int format = 0 );
- void store( std::ostream & os, int format = 0 ) const;
- void clear();
- };
- } // namespace
- #endif
|