Wraps Classifier objects to serve as feature selection criterion. More...
#include <criterion_wrapper.hpp>
Public Types | |
typedef boost::shared_ptr < CLASSIFIER > | PClassifier |
typedef boost::shared_ptr < DATAACCESSOR > | PDataAccessor |
typedef boost::shared_ptr< SUBSET > | PSubset |
Public Member Functions | |
virtual void | initialize (const PClassifier classifier, const PDataAccessor da) |
passing by boost::shared_ptr to enable keeping the reference throughout *this life cycle | |
virtual bool | evaluate (RETURNTYPE &result, const PSubset sub) |
trains then tests then returns estimated classifcation accuracy | |
Criterion_Wrapper * | clone () const |
Criterion_Wrapper * | sharing_clone () const |
Criterion_Wrapper * | stateless_clone () const |
virtual std::ostream & | print (std::ostream &os) const |
Protected Member Functions | |
Criterion_Wrapper (const Criterion_Wrapper &cw) | |
Protected Attributes | |
boost::shared_ptr< CLASSIFIER > | _classifier |
boost::shared_ptr< DATAACCESSOR > | _da |
Wraps Classifier objects to serve as feature selection criterion.
demo11.cpp, demo11t.cpp, demo12t.cpp, demo20.cpp, demo21.cpp, demo22.cpp, demo23.cpp, demo24.cpp, demo24t.cpp, demo25t.cpp, demo26.cpp, demo30.cpp, demo32t.cpp, demo34.cpp, demo35t.cpp, demo40.cpp, demo40t.cpp, demo41.cpp, demo42.cpp, demo43.cpp, demo50.cpp, demo51.cpp, demo52t.cpp, demo53.cpp, demo54.cpp, demo55.cpp, demo56.cpp, demo60.cpp, demo61.cpp, demo62.cpp, and demo63.cpp.
Criterion_Wrapper< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR > * FST::Criterion_Wrapper< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR >::clone | ( | ) | const [inline, virtual] |
create 1:1 independent clone of the current object
Implements FST::Clonable.
Reimplemented in FST::Criterion_Wrapper_Bias_Estimate< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR >.
Criterion_Wrapper* FST::Criterion_Wrapper< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR >::sharing_clone | ( | ) | const [inline, virtual] |
create equivalent clone of the current object, parmitting read-only access to structures in the source object (allows referencing instead of copying of large memory structures). may be faster and save space but requires more caution with respect to concurrency Use example: Data_Accessor memory data representation cloning
Implements FST::Clonable.
Reimplemented in FST::Criterion_Wrapper_Bias_Estimate< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR >.
Criterion_Wrapper* FST::Criterion_Wrapper< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR >::stateless_clone | ( | ) | const [inline, virtual] |
create clone of the current object, ignoring internal temporary structures to save speed. Does not replicate exact object state. The clone must be used carefully in a way that ensures internal structure re-initialization Use example: Data_Splitter cloning or Classifier_SVM cloning due to inability to clone external structures defined in LibSVM
Implements FST::Clonable.
Reimplemented in FST::Criterion_Wrapper_Bias_Estimate< RETURNTYPE, SUBSET, CLASSIFIER, DATAACCESSOR >.