|
latest version v1.9 - last update 10 Apr 2010 |
|
This class implements the sequential backward search algorithm for feature selection. More...
#include <ltiSequentialBackwardSearch.h>


Public Member Functions | |
| sequentialBackwardSearch () | |
| sequentialBackwardSearch (const sequentialBackwardSearch &other) | |
| virtual | ~sequentialBackwardSearch () |
| virtual const char * | getTypeName () const |
| bool | apply (const dmatrix &src, const ivector &srcIds, dmatrix &dest) |
| sequentialBackwardSearch & | copy (const sequentialBackwardSearch &other) |
| sequentialBackwardSearch & | operator= (const sequentialBackwardSearch &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
This class implements the sequential backward search algorithm for feature selection.
It is based on the PlusRTakeAwayR algorithm with parameters r=1 and l=0. It starts with all features from the source data an in each iteration the least significant feature is deleted from the destination matrix until the predetermined number of features is reached.
| lti::sequentialBackwardSearch::sequentialBackwardSearch | ( | ) |
default constructor
| lti::sequentialBackwardSearch::sequentialBackwardSearch | ( | const sequentialBackwardSearch & | other | ) |
copy constructor
| other | the object to be copied |
| virtual lti::sequentialBackwardSearch::~sequentialBackwardSearch | ( | ) | [virtual] |
destructor
| bool lti::sequentialBackwardSearch::apply | ( | const dmatrix & | src, | |
| const ivector & | srcIds, | |||
| dmatrix & | dest | |||
| ) |
selects the nbFeatures best features from src and puts them leave them in dest.
| src | dmatrix with the source data. | |
| srcIds | ivector with the ids corresponding to the point in src | |
| dest | dmatrix where the result will be left. |
| virtual functor* lti::sequentialBackwardSearch::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Reimplemented from lti::plusLTakeAwayR.
| sequentialBackwardSearch& lti::sequentialBackwardSearch::copy | ( | const sequentialBackwardSearch & | other | ) |
copy data of "other" functor.
| other | the functor to be copied |
Reimplemented from lti::plusLTakeAwayR.
| const parameters& lti::sequentialBackwardSearch::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::plusLTakeAwayR.
| virtual const char* lti::sequentialBackwardSearch::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("sequentialBackwardSearch")
Reimplemented from lti::plusLTakeAwayR.
| sequentialBackwardSearch& lti::sequentialBackwardSearch::operator= | ( | const sequentialBackwardSearch & | other | ) |
alias for copy member
| other | the functor to be copied |
Reimplemented from lti::plusLTakeAwayR.