ECF 1.5
|
Symbolic regression evaluation operator. More...
#include <GPSymbRegEvalOp.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 |
std::vector< string > | varNames |
bool | linearScaling |
Evaluator | eval |
bool | printParams |
DataWriter * | dataWriter |
bool | errorWeightsDefined |
std::vector< double > | errorWeights |
ErrorMetric * | errorMetric |
Symbolic regression evaluation operator.
Definition at line 34 of file GPSymbRegEvalOp.h.
bool GPSymbRegEvalOp::csvRead | ( | StateP | state, |
std::string | entry, | ||
std::vector< double > * | vec | ||
) |
Definition at line 136 of file GPSymbRegEvalOp.cpp.
|
virtual |
Evaluate a single individual. Method must create and return a Fitness object.
Implements EvaluateOp.
Definition at line 292 of file GPSymbRegEvalOp.cpp.
|
virtual |
Initialize the evaluator. Called before first evaluation occurs.
Reimplemented from EvaluateOp.
Definition at line 24 of file GPSymbRegEvalOp.cpp.
void GPSymbRegEvalOp::readIndividual | ( | IndividualP | individual | ) |
Definition at line 303 of file GPSymbRegEvalOp.cpp.
|
virtual |
Register evaluator parameters. Called before EvaluateOp::initialize method.
Reimplemented from EvaluateOp.
Definition at line 14 of file GPSymbRegEvalOp.cpp.
DataWriter* GPSymbRegEvalOp::dataWriter |
Definition at line 54 of file GPSymbRegEvalOp.h.
ErrorMetric* GPSymbRegEvalOp::errorMetric |
Definition at line 58 of file GPSymbRegEvalOp.h.
std::vector<double> GPSymbRegEvalOp::errorWeights |
Definition at line 56 of file GPSymbRegEvalOp.h.
bool GPSymbRegEvalOp::errorWeightsDefined |
Definition at line 55 of file GPSymbRegEvalOp.h.
Evaluator GPSymbRegEvalOp::eval |
Definition at line 51 of file GPSymbRegEvalOp.h.
std::vector<double> GPSymbRegEvalOp::f |
Definition at line 45 of file GPSymbRegEvalOp.h.
bool GPSymbRegEvalOp::linearScaling |
Definition at line 49 of file GPSymbRegEvalOp.h.
uint GPSymbRegEvalOp::nSamples |
Definition at line 46 of file GPSymbRegEvalOp.h.
uint GPSymbRegEvalOp::nVariables |
Definition at line 47 of file GPSymbRegEvalOp.h.
bool GPSymbRegEvalOp::printParams |
Definition at line 53 of file GPSymbRegEvalOp.h.
std::vector<string> GPSymbRegEvalOp::varNames |
Definition at line 48 of file GPSymbRegEvalOp.h.
std::vector<double> GPSymbRegEvalOp::x |
Definition at line 43 of file GPSymbRegEvalOp.h.
std::vector<double> GPSymbRegEvalOp::y |
Definition at line 44 of file GPSymbRegEvalOp.h.