ECF 1.5
MultipleClassEvalOp.h
1#ifndef ECF_CARTESIAN_MULTIPLECLASSEVALOP_H
2#define ECF_CARTESIAN_MULTIPLECLASSEVALOP_H
3#include <ECF.h>
4#include <ECF_macro.h>
5#include <EvaluateOp.h>
6
7#include <string>
8#include <vector>
9typedef std::pair<std::vector<std::vector<double> > , std::vector<uint> > PairAllFeaturesAllLabels;
11private:
12 std::vector<std::vector<double> > trainingInput;
13 std::vector<uint> trainingOutputs;
14 std::vector<std::vector<double> > testingInput;
15 std::vector<uint> testingOutputs;
16 std::string measureUsed;
17 double softTargetBeta;
18 double softTargetGamma;
19 uint numberOfDifferentClasses;
20 bool leadsWithId;
21 bool softTarget;
22public:
23 MultipleClassEvalOp(){leadsWithId = false; softTarget = false;};
24 void registerParameters(StateP stateP);
25 bool initialize(StateP stateP);
26 FitnessP evaluate(IndividualP individual);
27};
28
29#endif //ECF_CARTESIAN_MULTIPLECLASSEVALOP_H
Evaluation base class.
Definition: EvaluateOp.h:17
bool initialize(StateP stateP)
Initialize the evaluator. Called before first evaluation occurs.
void registerParameters(StateP stateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.