1#ifndef FSTSEARCHMONTECARLOTHREADED_H
2#define FSTSEARCHMONTECARLOTHREADED_H
66template<
class RETURNTYPE,
typename DIMTYPE,
class SUBSET,
class CRITERION>
76 explicit Search_Monte_Carlo_Threaded(
const unsigned int max_threads=2,
const unsigned long trials_limit=1000,
const unsigned long time_limit=0,
const unsigned int time_limit_check_freq=10)
78 {assert(max_threads>0);
notify(
"Search_Monte_Carlo_Threaded constructor.");}
Implements concurrent evaluation of a criterion on a set of subset candidates.
Implements concurrent evaluation of a criterion on a set of subset candidates.
Definition candidate_evaluator_threaded.hpp:156
DEPRECATED shim: threaded version of randomized search that repeatedly samples random subsets.
Definition search_monte_carlo_threaded.hpp:67
Search_Monte_Carlo< RETURNTYPE, DIMTYPE, SUBSET, CRITERION > parent
base class: the merged Monte Carlo search this shim configures with a threaded engine
Definition search_monte_carlo_threaded.hpp:69
parent::PEvaluatorEngine PEvaluatorEngine
the candidate-evaluation engine type, inherited from parent
Definition search_monte_carlo_threaded.hpp:70
Search_Monte_Carlo_Threaded(const unsigned int max_threads=2, const unsigned long trials_limit=1000, const unsigned long time_limit=0, const unsigned int time_limit_check_freq=10)
Constructs a Search_Monte_Carlo configured with a Candidate_Evaluator_Threaded engine of max_threads ...
Definition search_monte_carlo_threaded.hpp:76
Search_Monte_Carlo(const unsigned long long trials_limit=1000, const unsigned long time_limit=0, const unsigned int time_limit_check_freq=1, PEvaluatorEngine engine=PEvaluatorEngine())
engine defaults to sequential in-line evaluation if not supplied; see set_stopping_condition() for tr...
Definition search_monte_carlo.hpp:120
std::shared_ptr< EVALUATORENGINE > PEvaluatorEngine
Definition search_monte_carlo.hpp:118
FST4 specific error passing class.
The Feature Selection Toolbox 4 library: every library component – data access, criteria and classifi...
Definition data_accessor.hpp:80
void notify(const std::string msg)
Prints msg followed by a newline via syncout::print(); a no-op unless the preprocessor macro DEBUG is...
Definition global.hpp:112
Repeatedly samples random subsets to eventually yield the one with highest criterion value.