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


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