Feat C++ API
A feature engineering automation tool
FT::Pop::Archive Struct Reference

#include <archive.h>

Collaboration diagram for FT::Pop::Archive:

Public Member Functions

 Archive ()
 
void set_objectives (vector< string > objectives)
 
void init (Population &pop)
 
void update (const Population &pop, const Parameters &params)
 

Static Public Member Functions

static bool sortComplexity (const Individual &lhs, const Individual &rhs)
 Sort population in increasing complexity. More...
 
static bool sortObj1 (const Individual &lhs, const Individual &rhs)
 Sort population by first objective. More...
 
static bool sameFitComplexity (const Individual &lhs, const Individual &rhs)
 check for repeats More...
 
static bool sameObjectives (const Individual &lhs, const Individual &rhs)
 

Public Attributes

vector< Individualindividuals
 individual programs in the archive More...
 
bool sort_complexity
 whether to sort archive by complexity More...
 
NSGA2 selector
 nsga2 selection operator for getting the front More...
 

Detailed Description

Definition at line 26 of file archive.h.

Constructor & Destructor Documentation

◆ Archive()

Archive::Archive ( )

Definition at line 12 of file archive.cc.

Member Function Documentation

◆ init()

void Archive::init ( Population pop)

Definition at line 56 of file archive.cc.

◆ sameFitComplexity()

bool Archive::sameFitComplexity ( const Individual lhs,
const Individual rhs 
)
static

check for repeats

Definition at line 34 of file archive.cc.

◆ sameObjectives()

bool Archive::sameObjectives ( const Individual lhs,
const Individual rhs 
)
static

Definition at line 41 of file archive.cc.

◆ set_objectives()

void Archive::set_objectives ( vector< string >  objectives)

Definition at line 14 of file archive.cc.

◆ sortComplexity()

bool Archive::sortComplexity ( const Individual lhs,
const Individual rhs 
)
static

Sort population in increasing complexity.

Definition at line 22 of file archive.cc.

◆ sortObj1()

bool Archive::sortObj1 ( const Individual lhs,
const Individual rhs 
)
static

Sort population by first objective.

Definition at line 28 of file archive.cc.

◆ update()

void Archive::update ( const Population pop,
const Parameters params 
)

Definition at line 76 of file archive.cc.

Member Data Documentation

◆ individuals

vector<Individual> FT::Pop::Archive::individuals

individual programs in the archive

Definition at line 28 of file archive.h.

◆ selector

NSGA2 FT::Pop::Archive::selector

nsga2 selection operator for getting the front

Definition at line 31 of file archive.h.

◆ sort_complexity

bool FT::Pop::Archive::sort_complexity

whether to sort archive by complexity

Definition at line 29 of file archive.h.


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