Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Sel::Selection< T > Class Template Reference

interfaces with selection operators. More...

#include <selection.h>

Collaboration diagram for Brush::Sel::Selection< T >:

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_tselect (Population< T > &pop, int island, const Parameters &params)
 perform selection. selection uses a pop that has no offspring space
 
vector< size_tsurvive (Population< T > &pop, int island, const Parameters &params)
 perform survival. uses a pop with offspring space
 

Public Attributes

SelectionOperator< T > * pselector
 
string type
 
bool survival
 

Detailed Description

template<ProgramType T>
class Brush::Sel::Selection< T >

interfaces with selection operators.

Definition at line 24 of file selection.h.

Constructor & Destructor Documentation

◆ Selection() [1/2]

Definition at line 10 of file selection.cpp.

◆ ~Selection()

template<ProgramType T>
Brush::Sel::Selection< T >::~Selection ( )
inline

Definition at line 32 of file selection.h.

◆ Selection() [2/2]

template<ProgramType T>
Brush::Sel::Selection< T >::Selection ( string type,
bool survival )

set type of selection operator.

Definition at line 19 of file selection.cpp.

Member Function Documentation

◆ get_type()

template<ProgramType T>
string Brush::Sel::Selection< T >::get_type ( )

return type of selectionoperator

Definition at line 43 of file selection.cpp.

◆ select()

template<ProgramType T>
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.

Here is the call graph for this function:

◆ set_operator()

template<ProgramType T>
void Brush::Sel::Selection< T >::set_operator ( )

Definition at line 30 of file selection.cpp.

Here is the call graph for this function:

◆ set_type()

template<ProgramType T>
void Brush::Sel::Selection< T >::set_type ( string in)

set type of selectionoperator

Definition at line 47 of file selection.cpp.

Here is the call graph for this function:

◆ survive()

template<ProgramType T>
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.

Here is the call graph for this function:

Member Data Documentation

◆ pselector

template<ProgramType T>
SelectionOperator<T>* Brush::Sel::Selection< T >::pselector

Definition at line 27 of file selection.h.

◆ survival

template<ProgramType T>
bool Brush::Sel::Selection< T >::survival

Definition at line 29 of file selection.h.

◆ type

template<ProgramType T>
string Brush::Sel::Selection< T >::type

Definition at line 28 of file selection.h.


The documentation for this class was generated from the following files: