ECF 1.5
GEPSymbRegEvalOp.h
1#ifndef SymbRegEvalOp_h
2#define SymbRegEvalOp_h
3
4
27#include <cmath>
28#include <ecf/ECF.h>
29#include <fstream>
30#include "Evaluator.h"
31
33{
34public:
35 FitnessP evaluate(IndividualP individual);
36 bool initialize(StateP);
37 void registerParameters(StateP);
38 bool csvRead(StateP state, std::string entry, std::vector<double>* vec);
39 void readIndividual(IndividualP individual);
40
41 std::vector<double> x;
42 std::vector<double> y;
43 std::vector<double> f;
44 uint nSamples;
45 uint nVariables;
46
47 Evaluator eval;
48};
49typedef boost::shared_ptr<GEPSymbRegEvalOp> GEPSymbRegEvalOpP;
50
51#endif // SymbRegEvalOp_h
Evaluation base class.
Definition: EvaluateOp.h:17
Symbolic regression evaluation operator.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.