16 this->
type =
"lexicase";
33 if (this->
type ==
"lexicase")
35 else if (this->
type ==
"fair_lexicase")
37 else if (this->
type ==
"nsga2")
39 else if (this->
type ==
"tournament")
41 else if (this->
type ==
"offspring")
43 else if (this->
type ==
"random")
45 else if (this->
type ==
"simanneal")
48 WARN(
"Undefined Selection Operator " + this->
type +
"\n");
data holding X, y, and Z data
bool in(const vector< T > v, const T &i)
check if element is in vector.
holds the hyperparameters for Feat.
Defines a population of programs and functions for constructing them.
string get_type()
return type of selectionoperator
void set_type(string)
set type of selectionoperator
vector< size_t > survive(Population &pop, const Parameters ¶ms, const Data &d)
perform survival
shared_ptr< SelectionOperator > pselector
vector< size_t > select(Population &pop, const Parameters ¶ms, const Data &d)
perform selection