Feat C++ API
A feature engineering automation tool
FT::Sel::FairLexicase Class Reference

FairLexicase selection operator. More...

#include <fair_lexicase.h>

Inheritance diagram for FT::Sel::FairLexicase:
Collaboration diagram for FT::Sel::FairLexicase:

Public Member Functions

 FairLexicase (bool surv)
 
 ~FairLexicase ()
 
vector< size_t > select (Population &pop, const Parameters &params, const Data &d)
 function returns a set of selected indices
More...
 
vector< size_t > survive (Population &pop, const Parameters &params, const Data &d)
 lexicase survival More...
 
- Public Member Functions inherited from FT::Sel::SelectionOperator
virtual ~SelectionOperator ()
 

Additional Inherited Members

- Public Attributes inherited from FT::Sel::SelectionOperator
bool survival
 
string name
 

Detailed Description

FairLexicase selection operator.

Definition at line 20 of file fair_lexicase.h.

Constructor & Destructor Documentation

◆ FairLexicase()

FT::Sel::FairLexicase::FairLexicase ( bool  surv)

Definition at line 12 of file fair_lexicase.cc.

◆ ~FairLexicase()

FT::Sel::FairLexicase::~FairLexicase ( )

Definition at line 18 of file fair_lexicase.cc.

Member Function Documentation

◆ select()

vector< size_t > FT::Sel::FairLexicase::select ( Population pop,
const Parameters params,
const Data d 
)
virtual

function returns a set of selected indices

Selection according to lexicase selection for binary outcomes and epsilon-lexicase selection for continuous.

Parameters
poppopulation
paramsparameters.
Returns
selected: vector of indices corresponding to pop that are selected.

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 20 of file fair_lexicase.cc.

◆ survive()

vector< size_t > FT::Sel::FairLexicase::survive ( Population pop,
const Parameters params,
const Data d 
)
virtual

lexicase survival

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 219 of file fair_lexicase.cc.


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