Brush C++ API
A flexible interpretable machine learning framework
|
interfaces with selection operators. More...
#include <selection.h>
Public Member Functions | |
Selection () | |
~Selection () | |
Selection (string type, bool survival) | |
void | set_operator () |
string | get_type () |
return type of selectionoperator | |
void | set_type (string) |
set type of selectionoperator | |
vector< size_t > | select (Population< T > &pop, int island, const Parameters ¶ms) |
perform selection. selection uses a pop that has no offspring space | |
vector< size_t > | survive (Population< T > &pop, int island, const Parameters ¶ms) |
perform survival. uses a pop with offspring space | |
Public Attributes | |
SelectionOperator< T > * | pselector |
string | type |
bool | survival |
interfaces with selection operators.
Definition at line 24 of file selection.h.
Brush::Sel::Selection< T >::Selection | ( | ) |
Definition at line 10 of file selection.cpp.
|
inline |
Definition at line 32 of file selection.h.
Brush::Sel::Selection< T >::Selection | ( | string | type, |
bool | survival ) |
set type of selection operator.
Definition at line 19 of file selection.cpp.
string Brush::Sel::Selection< T >::get_type | ( | ) |
return type of selectionoperator
Definition at line 43 of file selection.cpp.
vector< size_t > Brush::Sel::Selection< T >::select | ( | Population< T > & | pop, |
int | island, | ||
const Parameters & | params ) |
perform selection. selection uses a pop that has no offspring space
perform selection
Definition at line 51 of file selection.cpp.
void Brush::Sel::Selection< T >::set_operator | ( | ) |
void Brush::Sel::Selection< T >::set_type | ( | string | in | ) |
set type of selectionoperator
Definition at line 47 of file selection.cpp.
vector< size_t > Brush::Sel::Selection< T >::survive | ( | Population< T > & | pop, |
int | island, | ||
const Parameters & | params ) |
perform survival. uses a pop with offspring space
perform survival
Definition at line 59 of file selection.cpp.
SelectionOperator<T>* Brush::Sel::Selection< T >::pselector |
Definition at line 27 of file selection.h.
bool Brush::Sel::Selection< T >::survival |
Definition at line 29 of file selection.h.
string Brush::Sel::Selection< T >::type |
Definition at line 28 of file selection.h.