Feature Selection Toolbox FST4
UTIA · Czech Academy of Sciences
Loading...
Searching...
No Matches
seq_step_straight_threaded.hpp
Go to the documentation of this file.
1#ifndef FSTSEARCHSEQSTEPSTRAIGHTTHREADED_H
2#define FSTSEARCHSEQSTEPSTRAIGHTTHREADED_H
3 /*
22=========================================================================
23Copyright and license:
24 * FST4 software (with the exception of any bundled or externally linked
25 third-party components) is Copyright (C) 2000-present Institute of
26 Information Theory and Automation of the Czech Academy of Sciences (UTIA).
27 * FST4 is free software: you can redistribute it and/or modify it under
28 the terms of the GNU Affero General Public License as published by the
29 Free Software Foundation, version 3. The full text of the license is in
30 the file LICENSE in the distribution root and at
31 https://www.gnu.org/licenses/agpl-3.0.html.
32 * FST4 is distributed in the hope that it will be useful, but WITHOUT ANY
33 WARRANTY; without even the implied warranty of MERCHANTABILITY or
34 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
35 License for more details.
36 * Closed-source use without the AGPL's copyleft obligations requires a
37 commercial license from UTIA; in case of interest write to
38 utia@utia.cas.cz. LICENSING.md in the distribution root explains both
39 options, the contributor license agreement that every contribution
40 requires, and the contacts (technical questions and pull requests:
41 somol@utia.cas.cz, with "FST" in the subject line).
42========================================================================== */
43
44#include <memory>
45#include <cassert>
46#include "error.hpp"
47#include "global.hpp"
48#include "seq_step_straight.hpp"
50
51namespace FST {
52
76template<class RETURNTYPE, typename DIMTYPE, class SUBSET, class CRITERION>
77class Sequential_Step_Straight_Threaded : public Sequential_Step_Straight<RETURNTYPE,DIMTYPE,SUBSET,CRITERION>{
78public:
83 explicit Sequential_Step_Straight_Threaded(const unsigned int max_threads=2)
84 :Sequential_Step_Straight<RETURNTYPE,DIMTYPE,SUBSET,CRITERION>(PEvaluatorEngine(new Candidate_Evaluator_Threaded<RETURNTYPE,DIMTYPE,SUBSET,CRITERION>(max_threads)))
85 {assert(max_threads>0); notify("Sequential_Step_Straight_Threaded constructor.");}
86 virtual ~Sequential_Step_Straight_Threaded() {notify("Sequential_Step_Straight_Threaded destructor.");}
87};
88
89} // namespace
90#endif // FSTSEARCHSEQSTEPSTRAIGHTTHREADED_H ///:~
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 sequential selection step in sequential search type of methods.
Definition seq_step_straight_threaded.hpp:77
parent::PEvaluatorEngine PEvaluatorEngine
Definition seq_step_straight_threaded.hpp:80
Sequential_Step_Straight_Threaded(const unsigned int max_threads=2)
Constructs a Sequential_Step_Straight configured with a Candidate_Evaluator_Threaded engine of max_th...
Definition seq_step_straight_threaded.hpp:83
Sequential_Step_Straight< RETURNTYPE, DIMTYPE, SUBSET, CRITERION > parent
base class: the merged sequential-step implementation this shim configures with a threaded engine
Definition seq_step_straight_threaded.hpp:79
Sequential_Step_Straight(PEvaluatorEngine engine=PEvaluatorEngine())
engine defaults to sequential in-line evaluation (Candidate_Evaluator_Sequential) if not supplied; pa...
Definition seq_step_straight.hpp:111
std::shared_ptr< EVALUATORENGINE > PEvaluatorEngine
Definition seq_step_straight.hpp:109
FST4 specific error passing class.
Global definitions.
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
Implements standard sequential selection step in sequential search type of methods.
Copyright © 2000–present ÚTIA, Institute of Information Theory and Automation of the Czech Academy of Sciences · Contacts · This site sets no cookies and uses no analytics.