Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
selection_operator.cpp
Go to the documentation of this file.
2
3namespace Brush {
4namespace Sel {
5
6using namespace Brush;
7using namespace Pop;
8
9template<ProgramType T>
11
12template<ProgramType T>
14 const Parameters& p)
15{
16 HANDLE_ERROR_THROW("Undefined select() operation");
17 return vector<size_t>();
18};
19
20template<ProgramType T>
22 const Parameters& p)
23{
24 HANDLE_ERROR_THROW("Undefined select() operation");
25 return vector<size_t>();
26};
27
28} // selection
29} // Brush
void bind_engine(py::module &m, string name)
virtual vector< size_t > select(Population< T > &pop, int island, const Parameters &p)
Selects individuals from the population based on the selection operator's strategy.
virtual ~SelectionOperator()
Destructor for the SelectionOperator class.
virtual vector< size_t > survive(Population< T > &pop, int island, const Parameters &p)
Applies the selection operator to determine which individuals survive in the population.
#define HANDLE_ERROR_THROW(err)
Definition error.h:27
< nsga2 selection operator for getting the front
Definition data.cpp:12