Changeset 1891 for trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/3.3/ClassificationMeanSquaredErrorEvaluator.cs
- Timestamp:
- 05/25/09 17:46:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/3.3/ClassificationMeanSquaredErrorEvaluator.cs
r1796 r1891 43 43 } 44 44 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) {45 public override void Evaluate(IScope scope, ITreeEvaluator evaluator, 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( tree,sample);48 double estimated = evaluator.Evaluate(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.