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

Lexicase selection operator. More...

#include <lexicase.h>

Inheritance diagram for Brush::Sel::Lexicase< T >:
Collaboration diagram for Brush::Sel::Lexicase< T >:

Public Member Functions

 Lexicase (bool surv=false)
 
 ~Lexicase ()
 
vector< size_t > select (Population< T > &pop, int island, const Parameters &p)
 function returns a set of selected indices from pop
 
vector< size_t > survive (Population< T > &pop, int island, const Parameters &p)
 lexicase survival
 
void set_lexicase_pool (vector< size_t > s)
 
- Public Member Functions inherited from Brush::Sel::SelectionOperator< T >
virtual ~SelectionOperator ()
 Destructor for the SelectionOperator class.
 

Private Attributes

vector< size_t > lexicase_pool
 

Additional Inherited Members

- Public Attributes inherited from Brush::Sel::SelectionOperator< T >
bool survival
 
string name
 

Detailed Description

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

Lexicase selection operator.

Definition at line 21 of file lexicase.h.

Constructor & Destructor Documentation

◆ Lexicase()

template<ProgramType T>
Brush::Sel::Lexicase< T >::Lexicase ( bool surv = false)

Definition at line 11 of file lexicase.cpp.

◆ ~Lexicase()

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

Definition at line 25 of file lexicase.h.

Member Function Documentation

◆ select()

template<ProgramType T>
vector< size_t > Brush::Sel::Lexicase< T >::select ( Population< T > & pop,
int island,
const Parameters & p )
virtual

function returns a set of selected indices from pop

Reimplemented from Brush::Sel::SelectionOperator< T >.

Definition at line 18 of file lexicase.cpp.

Here is the call graph for this function:

◆ set_lexicase_pool()

template<ProgramType T>
void Brush::Sel::Lexicase< T >::set_lexicase_pool ( vector< size_t > s)
inline

Definition at line 35 of file lexicase.h.

◆ survive()

template<ProgramType T>
vector< size_t > Brush::Sel::Lexicase< T >::survive ( Population< T > & pop,
int island,
const Parameters & p )
virtual

lexicase survival

Reimplemented from Brush::Sel::SelectionOperator< T >.

Definition at line 184 of file lexicase.cpp.

Member Data Documentation

◆ lexicase_pool

template<ProgramType T>
vector<size_t> Brush::Sel::Lexicase< T >::lexicase_pool
private

Definition at line 38 of file lexicase.h.


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