Changeset 1891 for trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/VarianceAccountedForEvaluator.cs
- Timestamp:
- 05/25/09 17:46:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/VarianceAccountedForEvaluator.cs
r1796 r1891 53 53 } 54 54 55 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, IFunctionTree tree,Dataset dataset, int targetVariable, int start, int end, bool updateTargetValues) {55 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end, bool updateTargetValues) { 56 56 int nSamples = end - start; 57 57 double[] errors = new double[nSamples]; 58 58 double[] originalTargetVariableValues = new double[nSamples]; 59 59 for (int sample = start; sample < end; sample++) { 60 double estimated = evaluator.Evaluate( tree,sample);60 double estimated = evaluator.Evaluate(sample); 61 61 double original = dataset.GetValue(sample, targetVariable); 62 62 if (updateTargetValues) {
Note: See TracChangeset
for help on using the changeset viewer.