ECF 1.5
Public Member Functions | Public Attributes | List of all members
GPSymbRegEvalOp Class Reference

Symbolic regression evaluation operator. More...

#include <GPSymbRegEvalOp.h>

Inheritance diagram for GPSymbRegEvalOp:
EvaluateOp

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
 
DataWriterdataWriter
 
bool errorWeightsDefined
 
std::vector< double > errorWeights
 
ErrorMetricerrorMetric
 

Detailed Description

Symbolic regression evaluation operator.

Definition at line 34 of file GPSymbRegEvalOp.h.

Member Function Documentation

◆ csvRead()

bool GPSymbRegEvalOp::csvRead ( StateP  state,
std::string  entry,
std::vector< double > *  vec 
)

Definition at line 136 of file GPSymbRegEvalOp.cpp.

◆ evaluate()

FitnessP GPSymbRegEvalOp::evaluate ( IndividualP  )
virtual

Evaluate a single individual. Method must create and return a Fitness object.

Implements EvaluateOp.

Definition at line 292 of file GPSymbRegEvalOp.cpp.

◆ initialize()

bool GPSymbRegEvalOp::initialize ( StateP  )
virtual

Initialize the evaluator. Called before first evaluation occurs.

Reimplemented from EvaluateOp.

Definition at line 24 of file GPSymbRegEvalOp.cpp.

◆ readIndividual()

void GPSymbRegEvalOp::readIndividual ( IndividualP  individual)

Definition at line 303 of file GPSymbRegEvalOp.cpp.

◆ registerParameters()

void GPSymbRegEvalOp::registerParameters ( StateP  )
virtual

Register evaluator parameters. Called before EvaluateOp::initialize method.

Reimplemented from EvaluateOp.

Definition at line 14 of file GPSymbRegEvalOp.cpp.

Member Data Documentation

◆ dataWriter

DataWriter* GPSymbRegEvalOp::dataWriter

Definition at line 54 of file GPSymbRegEvalOp.h.

◆ errorMetric

ErrorMetric* GPSymbRegEvalOp::errorMetric

Definition at line 58 of file GPSymbRegEvalOp.h.

◆ errorWeights

std::vector<double> GPSymbRegEvalOp::errorWeights

Definition at line 56 of file GPSymbRegEvalOp.h.

◆ errorWeightsDefined

bool GPSymbRegEvalOp::errorWeightsDefined

Definition at line 55 of file GPSymbRegEvalOp.h.

◆ eval

Evaluator GPSymbRegEvalOp::eval

Definition at line 51 of file GPSymbRegEvalOp.h.

◆ f

std::vector<double> GPSymbRegEvalOp::f

Definition at line 45 of file GPSymbRegEvalOp.h.

◆ linearScaling

bool GPSymbRegEvalOp::linearScaling

Definition at line 49 of file GPSymbRegEvalOp.h.

◆ nSamples

uint GPSymbRegEvalOp::nSamples

Definition at line 46 of file GPSymbRegEvalOp.h.

◆ nVariables

uint GPSymbRegEvalOp::nVariables

Definition at line 47 of file GPSymbRegEvalOp.h.

◆ printParams

bool GPSymbRegEvalOp::printParams

Definition at line 53 of file GPSymbRegEvalOp.h.

◆ varNames

std::vector<string> GPSymbRegEvalOp::varNames

Definition at line 48 of file GPSymbRegEvalOp.h.

◆ x

std::vector<double> GPSymbRegEvalOp::x

Definition at line 43 of file GPSymbRegEvalOp.h.

◆ y

std::vector<double> GPSymbRegEvalOp::y

Definition at line 44 of file GPSymbRegEvalOp.h.


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