#include <FeatureSelector.h>
Inheritance diagram for prapi::SubSetSelector:

Public Methods | |
| SubSetSelector (GoodnessMeasure &measure) | |
| Create a new SubSetSelector with the given goodness measure. | |
| virtual util::List< int > | optimize (int totalCount, int desiredCount=-1)=0 |
| Find a sub-optimal subset of items. | |
| void | stop () |
| Stop the optimization. | |
| double | measureGoodness (const util::List< int > &enabledIndices) |
| Measure the goodness of a subset (of features). | |
| void | setGoodnessThreshold (double threshold) |
| Set the goodness value after which optimization is stopped. | |
| double | getGoodnessThreshold () const |
| Get the goodness value after which optimization is stopped. | |
Protected Attributes | |
| bool | _bStopped |
| A flag indicating whether the optimization should be continued. | |
| GoodnessMeasure & | _measure |
| The goodness measure. | |
| double | _dGoodnessThreshold |
| The goodness threshold. | |
|
|
Create a new SubSetSelector with the given goodness measure. The goodness measure is consulted whenever a set of features needs to be evaluated. |
|
|
Measure the goodness of a subset (of features). This methods consults the internal goodness measure to perform the actual measurement. |
|
||||||||||||
|
Find a sub-optimal subset of items. The implementation of this method is method-dependent. By convention, each implementation should fire a SelectionEvent every time an optimization round is finished.
Implemented in prapi::SequentialSelector, and prapi::BeamSelector. |
|
|
Set the goodness value after which optimization is stopped. To disable the threshold, set it to a non-positive number. |
|
|
Stop the optimization. This method is useful with fancy stopping criteria. If the optimization is not to be stopped after a certain number of iterations but according to some other rule, this method can be called from the measureGoodness() method of the GoodnessMeasure. This method sets the _bStopped flag to true. |