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

interfaces with selection operators. More...

#include <selection.h>

Collaboration diagram for FT::Sel::Selection:

Public Member Functions

 Selection ()
 
 ~Selection ()
 
 Selection (string type, bool survival)
 
void set_operator ()
 
string get_type ()
 return type of selectionoperator More...
 
void set_type (string)
 set type of selectionoperator More...
 
vector< size_t > select (Population &pop, const Parameters &params, const Data &d)
 perform selection More...
 
vector< size_t > survive (Population &pop, const Parameters &params, const Data &d)
 perform survival More...
 

Public Attributes

shared_ptr< SelectionOperatorpselector
 
string type
 
bool survival
 

Detailed Description

interfaces with selection operators.

Definition at line 35 of file selection.h.

Constructor & Destructor Documentation

◆ Selection() [1/2]

FT::Sel::Selection::Selection ( )

set type of selection operator.

Definition at line 11 of file selection.cc.

◆ ~Selection()

FT::Sel::Selection::~Selection ( )

Definition at line 52 of file selection.cc.

◆ Selection() [2/2]

FT::Sel::Selection::Selection ( string  type,
bool  survival 
)

set type of selection operator.

Definition at line 21 of file selection.cc.

Member Function Documentation

◆ get_type()

string FT::Sel::Selection::get_type ( )

return type of selectionoperator

Definition at line 55 of file selection.cc.

◆ select()

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

perform selection

Definition at line 61 of file selection.cc.

◆ set_operator()

void FT::Sel::Selection::set_operator ( )

Definition at line 31 of file selection.cc.

◆ set_type()

void FT::Sel::Selection::set_type ( string  in)

set type of selectionoperator

Definition at line 58 of file selection.cc.

◆ survive()

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

perform survival

Definition at line 68 of file selection.cc.

Member Data Documentation

◆ pselector

shared_ptr<SelectionOperator> FT::Sel::Selection::pselector

Definition at line 37 of file selection.h.

◆ survival

bool FT::Sel::Selection::survival

Definition at line 39 of file selection.h.

◆ type

string FT::Sel::Selection::type

Definition at line 38 of file selection.h.


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