Changeset 2577 for trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/SimpleGPEvaluatorBase.cs
- Timestamp:
- 01/01/10 19:06:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/SimpleGPEvaluatorBase.cs
r2222 r2577 33 33 } 34 34 35 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end , bool updateTargetValues) {35 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end) { 36 36 // store original and estimated values in a double array 37 37 double[,] values = new double[end - start, 2]; … … 39 39 double original = dataset.GetValue(sample, targetVariable); 40 40 double estimated = evaluator.Evaluate(sample); 41 if (updateTargetValues) { 42 dataset.SetValue(sample, targetVariable, estimated); 43 } 41 44 42 values[sample - start, 0] = estimated; 45 43 values[sample - start, 1] = original;
Note: See TracChangeset
for help on using the changeset viewer.