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

Lexicase selection operator. More...

#include <lexicase.h>

Inheritance diagram for FT::Sel::Lexicase:
Collaboration diagram for FT::Sel::Lexicase:

Public Member Functions

 Lexicase (bool surv)
 
 ~Lexicase ()
 
vector< size_t > select (Population &pop, const Parameters &params, const Data &d)
 function returns a set of selected indices from pop 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

Lexicase selection operator.

Definition at line 20 of file lexicase.h.

Constructor & Destructor Documentation

◆ Lexicase()

FT::Sel::Lexicase::Lexicase ( bool  surv)

Definition at line 11 of file lexicase.cc.

◆ ~Lexicase()

FT::Sel::Lexicase::~Lexicase ( )

Definition at line 13 of file lexicase.cc.

Member Function Documentation

◆ select()

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

function returns a set of selected indices from pop

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 15 of file lexicase.cc.

◆ survive()

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

lexicase survival

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 143 of file lexicase.cc.


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