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

#include <random.h>

Inheritance diagram for FT::Sel::Random:
Collaboration diagram for FT::Sel::Random:

Public Member Functions

 Random (bool surv)
 
 ~Random ()
 
vector< size_t > select (Population &pop, const Parameters &params, const Data &d)
 
vector< size_t > survive (Population &pop, const Parameters &params, const Data &d)
 
void enforce_elite (Population &pop, vector< size_t > &selected)
 replaces worst individual in selected with best individual in Pop. More...
 
- Public Member Functions inherited from FT::Sel::SelectionOperator
virtual ~SelectionOperator ()
 

Public Attributes

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

Detailed Description

Definition at line 17 of file random.h.

Constructor & Destructor Documentation

◆ Random()

FT::Sel::Random::Random ( bool  surv)

Random based selection and survival methods.

Definition at line 14 of file random.cc.

◆ ~Random()

FT::Sel::Random::~Random ( )

Definition at line 16 of file random.cc.

Member Function Documentation

◆ enforce_elite()

void FT::Sel::Random::enforce_elite ( Population pop,
vector< size_t > &  selected 
)

replaces worst individual in selected with best individual in Pop.

Definition at line 75 of file random.cc.

◆ select()

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

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 18 of file random.cc.

◆ survive()

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

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 47 of file random.cc.

Member Data Documentation

◆ elitism

bool FT::Sel::Random::elitism

Definition at line 31 of file random.h.


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