ECF 1.5
|
Symbolic regression evaluation operator. More...
#include <GEPSymbRegEvalOp.h>
Public Member Functions | |
FitnessP | evaluate (IndividualP individual) |
Evaluate a single individual. Method must create and return a Fitness object. More... | |
bool | initialize (StateP) |
Initialize the evaluator. Called before first evaluation occurs. More... | |
void | registerParameters (StateP) |
Register evaluator parameters. Called before EvaluateOp::initialize method. More... | |
bool | csvRead (StateP state, std::string entry, std::vector< double > *vec) |
void | readIndividual (IndividualP individual) |
virtual FitnessP | evaluate (IndividualP)=0 |
Evaluate a single individual. Method must create and return a Fitness object. More... | |
virtual void | registerParameters (StateP) |
Register evaluator parameters. Called before EvaluateOp::initialize method. More... | |
virtual bool | initialize (StateP) |
Initialize the evaluator. Called before first evaluation occurs. More... | |
Public Attributes | |
std::vector< double > | x |
std::vector< double > | y |
std::vector< double > | f |
uint | nSamples |
uint | nVariables |
Evaluator | eval |
Symbolic regression evaluation operator.
Definition at line 32 of file GEPSymbRegEvalOp.h.
bool GEPSymbRegEvalOp::csvRead | ( | StateP | state, |
std::string | entry, | ||
std::vector< double > * | vec | ||
) |
Definition at line 66 of file GEPSymbRegEvalOp.cpp.
|
virtual |
Evaluate a single individual. Method must create and return a Fitness object.
Implements EvaluateOp.
Definition at line 80 of file GEPSymbRegEvalOp.cpp.
|
virtual |
Initialize the evaluator. Called before first evaluation occurs.
Reimplemented from EvaluateOp.
Definition at line 13 of file GEPSymbRegEvalOp.cpp.
void GEPSymbRegEvalOp::readIndividual | ( | IndividualP | individual | ) |
Definition at line 104 of file GEPSymbRegEvalOp.cpp.
|
virtual |
Register evaluator parameters. Called before EvaluateOp::initialize method.
Reimplemented from EvaluateOp.
Definition at line 6 of file GEPSymbRegEvalOp.cpp.
Evaluator GEPSymbRegEvalOp::eval |
Definition at line 47 of file GEPSymbRegEvalOp.h.
std::vector<double> GEPSymbRegEvalOp::f |
Definition at line 43 of file GEPSymbRegEvalOp.h.
uint GEPSymbRegEvalOp::nSamples |
Definition at line 44 of file GEPSymbRegEvalOp.h.
uint GEPSymbRegEvalOp::nVariables |
Definition at line 45 of file GEPSymbRegEvalOp.h.
std::vector<double> GEPSymbRegEvalOp::x |
Definition at line 41 of file GEPSymbRegEvalOp.h.
std::vector<double> GEPSymbRegEvalOp::y |
Definition at line 42 of file GEPSymbRegEvalOp.h.