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_tselect (Population< T > &pop, int island, const Parameters &p)
 function returns a set of selected indices from pop
 
vector< size_tsurvive (Population< T > &pop, int island, const Parameters &p)
 lexicase survival
 
- Public Member Functions inherited from Brush::Sel::SelectionOperator< T >
virtual ~SelectionOperator ()
 Destructor for the SelectionOperator class.
 

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()

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:

◆ 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 166 of file lexicase.cpp.


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