Feat C++ API
A feature engineering automation tool
tournament.h
Go to the documentation of this file.
1 /* FEAT
2 copyright 2017 William La Cava
3 license: GNU/GPL v3
4 */
5 #ifndef TOURNAMENT_H
6 #define TOURNAMENT_H
7 
8 #include "selection_operator.h"
9 
10 namespace FT{
11 
12  namespace Sel{
14 
18  {
21  Tournament(bool surv);
22 
23  ~Tournament();
24 
26  vector<size_t> select(Population& pop,
27  const Parameters& p, const Data& d);
28 
30  vector<size_t> survive(Population& pop,
31  const Parameters& p, const Data& d);
32 
33  private:
34 
35  size_t tournament(vector<Individual>& pop, size_t i, size_t j) const;
36  };
37 
38  }
39 
40 }
41 #endif
data holding X, y, and Z data
Definition: data.h:42
T pop(vector< T > *v)
Definition: auto_backprop.h:49
main Feat namespace
Definition: data.cc:13
int i
Definition: params.cc:552
holds the hyperparameters for Feat.
Definition: params.h:25
Defines a population of programs and functions for constructing them.
Definition: population.h:28
base class for selection operators.
size_t tournament(vector< Individual > &pop, size_t i, size_t j) const
Definition: tournament.cc:20
vector< size_t > survive(Population &pop, const Parameters &p, const Data &d)
survival according to the survival scheme of Tournament
Definition: tournament.cc:67
vector< size_t > select(Population &pop, const Parameters &p, const Data &d)
selection according to the survival scheme of Tournament
Definition: tournament.cc:34
Tournament(bool surv)
Definition: tournament.cc:16