Changeset 1796 for trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/3.3/ClassificationMeanSquaredErrorEvaluator.cs
- Timestamp:
- 05/14/09 13:46:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/3.3/ClassificationMeanSquaredErrorEvaluator.cs
r1529 r1796 43 43 } 44 44 45 public override void Evaluate(IScope scope, BakedTreeEvaluator evaluator, HeuristicLab.DataAnalysis.Dataset dataset, int targetVariable, double[] classes, double[] thresholds, int start, int end) {45 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, IFunctionTree tree, HeuristicLab.DataAnalysis.Dataset dataset, int targetVariable, double[] classes, double[] thresholds, int start, int end) { 46 46 double errorsSquaredSum = 0; 47 47 for (int sample = start; sample < end; sample++) { 48 double estimated = evaluator.Evaluate( sample);48 double estimated = evaluator.Evaluate(tree, sample); 49 49 double original = dataset.GetValue(sample, targetVariable); 50 50 if (!double.IsNaN(original) && !double.IsInfinity(original)) {
Note: See TracChangeset
for help on using the changeset viewer.