Implements hybrid selection step in sequential search type of methods. More...
#include <seq_step_hybrid.hpp>
Classes | |
class | SubsetCandidate |
Nested class to hold [Subset,criterion value] pair in the course of hybrid feature candidate evaluation in Sequential_Step_Hybrid. More... | |
Public Types | |
typedef Sequential_Step < RETURNTYPE, DIMTYPE, SUBSET, CRITERION > | parent |
typedef boost::shared_ptr < FILTERCRITERION > | PFilterCriterion |
typedef boost::shared_ptr < CRITERION > | PCriterion |
typedef boost::shared_ptr< SUBSET > | PSubset |
Public Member Functions | |
Sequential_Step_Hybrid (const PFilterCriterion filtercrit, const DIMTYPE keep_perc, const DIMTYPE keep_max=1000) | |
void | set_prefiltering_limits (const DIMTYPE keep_perc, const DIMTYPE keep_max) |
DIMTYPE | get_prefiltering_perc () const |
DIMTYPE | get_prefiltering_max () const |
bool | evaluate_candidates (RETURNTYPE &result, const PSubset sub, const PCriterion crit, const DIMTYPE _generalization_level=1, std::ostream &os=std::cout) |
chooses among subsets offered by sub->get*CandidateSubset() | |
virtual std::ostream & | print (std::ostream &os) const |
Protected Types | |
typedef std::list < SubsetCandidate > | CANDIDATELIST |
Protected Member Functions | |
bool | filter_candidates (const PSubset sub, const DIMTYPE _generalization_level, std::ostream &os) |
bool | test_candidate (const PSubset sub) |
Protected Attributes | |
PFilterCriterion | _filtercrit |
DIMTYPE | _keep_perc |
filter out (100-_keep_perc) % of candidate subsets | |
DIMTYPE | _keep_max |
when filtering keep maximally _keep_max candidate subsets (restriction on CANDIDATELIST size) | |
DIMTYPE | _listsize |
CANDIDATELIST | _filterlist |
CANDIDATELIST::iterator | iter |
Private Attributes | |
boost::scoped_ptr< SUBSET > | tmp_step_sub |
bool | track |
Implements hybrid selection step in sequential search type of methods.