DEPRECATED shim: threaded Best Individual Features, i.e., individual feature ranking.
More...
|
|
typedef Search_Ranking_BIF< RETURNTYPE, DIMTYPE, SUBSET, CRITERION > | parent |
| | base class: the merged BIF ranking search this shim configures with a threaded engine
|
| typedef parent::PEvaluatorEngine | PEvaluatorEngine |
|
typedef Search_Ranking< RETURNTYPE, DIMTYPE, SUBSET, CRITERION > | parent |
| | base class: the individual-ranking search skeleton (final best-dimensionality scan, feature-list bookkeeping)
|
|
typedef std::shared_ptr< CRITERION > | PCriterion |
| | shared pointer to the criterion being optimized
|
|
typedef std::shared_ptr< SUBSET > | PSubset |
| | shared pointer to a feature subset
|
|
typedef parent::PEvaluatorEngine | PEvaluatorEngine |
| | the candidate-evaluation engine type, inherited from parent
|
|
typedef Search< RETURNTYPE, DIMTYPE, SUBSET, CRITERION > | parent |
| | the abstract Search interface this class implements
|
|
typedef std::shared_ptr< CRITERION > | PCriterion |
| | shared pointer to the criterion the search optimizes
|
|
typedef std::shared_ptr< SUBSET > | PSubset |
| | shared pointer to a feature subset
|
|
typedef Candidate_Evaluator< RETURNTYPE, DIMTYPE, SUBSET, CRITERION > | EVALUATORENGINE |
| | the injected candidate-evaluation engine interface driving individual-feature evaluation
|
| typedef std::shared_ptr< EVALUATORENGINE > | PEvaluatorEngine |
|
typedef std::shared_ptr< CRITERION > | PCriterion |
| | shared pointer to the criterion the search optimizes
|
|
typedef std::shared_ptr< SUBSET > | PSubset |
| | shared pointer to a feature subset
|
|
typedef std::shared_ptr< Result_Tracker< RETURNTYPE, SUBSET > > | PResultTracker |
| | shared pointer to the result tracker enabled via enable_result_tracking()
|
|
typedef Search_Observer< RETURNTYPE, SUBSET > | OBSERVER |
| | the observer interface type this search reports through (see Search_Observer)
|
|
typedef std::shared_ptr< OBSERVER > | PObserver |
| | shared pointer to an OBSERVER, as set via set_observer()
|
|
| | Search_Ranking_BIF_Threaded (const unsigned int max_threads=2) |
| | Constructs a Search_Ranking_BIF configured with a Candidate_Evaluator_Threaded engine of max_threads workers.
|
| | Search_Ranking_BIF (PEvaluatorEngine engine=PEvaluatorEngine()) |
| | Constructs the search with the given candidate-evaluation engine; a default-constructed engine falls back to sequential in-line evaluation.
|
| virtual bool | evaluate_individuals (const DIMTYPE n, const PCriterion crit, std::ostream &os=std::cout) override |
| | Scores every single feature individually under crit and ranks them into parent::bifs (descending), the BIF core step consumed by Search_Ranking::search().
|
| virtual std::ostream & | print (std::ostream &os) const override |
| | writes a human-readable identification of the search and its configuration; base default writes nothing
|
| | Search_Ranking (PEvaluatorEngine engine=PEvaluatorEngine()) |
| virtual bool | search (const DIMTYPE target_d, RETURNTYPE &result, const PSubset sub, const PCriterion crit, std::ostream &os=std::cout) override |
| | ranks the features (evaluate_individuals()) and returns the target_d best-ranked ones, or - for target_d==0 - the best-valued prefix of the ranking; false if the ranking or one of the criterion evaluations failed. target_d must be smaller than the full feature count
|
|
bool | getFirstFeature (RETURNTYPE &value, DIMTYPE &feature) const |
| | iterator over bifs (the ranking built by evaluate_individuals()), highest-ranked feature first; returns false if bifs is empty
|
|
bool | getNextFeature (RETURNTYPE &value, DIMTYPE &feature) const |
| | continues the getFirstFeature() iteration; returns false once the ranking is exhausted. There is one cursor per object: it is protected against concurrent access in threaded builds, but two interleaved iterations of the same object still consume one another's positions
|
|
void | enable_result_tracking (PResultTracker tracker) |
| | assigns a result tracker to the search process, i.e., enables logging of all evaluated subsets for future reuse (re-evaluation, etc.)
|
|
void | disable_result_tracking () |
| | detaches any result tracker (result_tracker_active() then returns false)
|
|
bool | result_tracker_active () const |
| | true if a result tracker was assigned via enable_result_tracking() and not since disabled
|
|
void | set_output_detail (OutputDetail detail) |
| | sets the amount of information that is logged to output stream throughout the course of search
|
|
OutputDetail | get_output_detail () const |
| | the currently configured output detail level
|
|
bool | output_normal () const |
| | true unless output detail is SILENT
|
|
bool | output_detailed () const |
| | true only at the DETAILED output level
|
|
void | set_observer (PObserver observer) |
| | redirects search progress reporting away from the default syncout text output to observer
|
|
|
typedef std::list< OneFeature > | FEATURELIST |
| | the individual-feature ranking built by evaluate_individuals(), sorted descending by critval
|
|
void | report (std::ostream &os, const msgbuf &m) const |
| | delivers one pre-formatted progress message: to the observer if attached, otherwise as syncout text to os
|
|
void | report_solution (std::ostream &os, const RETURNTYPE value, const SUBSET &sub, const msgbuf &m) const |
| | like report(), for sites announcing a new (sub-)solution; fires on_solution instead
|
| PEvaluatorEngine | _engine |
|
FEATURELIST | bifs |
| | the individual-feature ranking; empty until evaluate_individuals() is called
|
|
PResultTracker | _tracker |
| | the assigned result tracker, or null (see enable_result_tracking()/result_tracker_active())
|
|
OutputDetail | _detail |
| | the output detail level set via set_output_detail(); read by output_normal()/output_detailed()
|
|
PObserver | _observer |
| | the attached progress observer, or null (see set_observer(), report(), report_solution())
|
template<class RETURNTYPE, typename DIMTYPE, class SUBSET, class CRITERION>
class FST::Search_Ranking_BIF_Threaded< RETURNTYPE, DIMTYPE, SUBSET, CRITERION >
DEPRECATED shim: threaded Best Individual Features, i.e., individual feature ranking.
- Deprecated
- Deprecated since FST4 4.0; scheduled for removal in the next major release — construct the merged class with a Candidate_Evaluator_Threaded engine instead.
Kept for source compatibility with earlier FST4 sources, written when the threaded and the sequential variant were separate classes. This class is now nothing but a Search_Ranking_BIF constructed with a Candidate_Evaluator_Threaded engine; prefer doing that directly in new code. The final best-dimensionality scan in Search_Ranking::search() runs through the same engine.