Changeset 2577 for trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/SimpleEvaluator.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/SimpleEvaluator.cs
r2222 r2577 31 31 } 32 32 33 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end , bool updateTargetValues) {33 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end) { 34 34 DoubleMatrixData values = GetVariableValue<DoubleMatrixData>("Values", scope, false, false); 35 35 if (values == null) { … … 47 47 double estimated = evaluator.Evaluate(sample); 48 48 double original = dataset.GetValue(sample, targetVariable); 49 if (updateTargetValues) { 50 dataset.SetValue(sample, targetVariable, estimated); 51 } 49 52 50 v[sample - start, 0] = original; 53 51 v[sample - start, 1] = estimated;
Note: See TracChangeset
for help on using the changeset viewer.