Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/08 12:44:27 (16 years ago)
Author:
gkronber
Message:

made a few more improvements in the GP evaluators (ticket #242 All GP evaluators should support the 'UseEstimatedTargetValues' switch for autoregressive modelling)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/Evaluation/ClassificationMeanSquaredErrorEvaluator.cs

    r480 r482  
    3131
    3232namespace HeuristicLab.StructureIdentification {
    33   public class ClassificationMeanSquaredErrorEvaluator : GPEvaluatorBase {
     33  public class ClassificationMeanSquaredErrorEvaluator : MeanSquaredErrorEvaluator {
    3434    private const double EPSILON = 1.0E-6;
    3535    private double[] classesArr;
     
    5454    }
    5555
    56     public override double Evaluate(int start, int end) {
    57 
     56    public override void Evaluate(int start, int end) {
    5857      double errorsSquaredSum = 0;
    5958      for(int sample = start; sample < end; sample++) {
     
    7978        errorsSquaredSum = double.MaxValue;
    8079      }
    81       return errorsSquaredSum;
     80      mse.Data = errorsSquaredSum;
    8281    }
    8382
Note: See TracChangeset for help on using the changeset viewer.