Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/01/10 19:06:18 (15 years ago)
Author:
gkronber
Message:

Remove usage of UseEstimatedTargetValue parameter. #825 (UseEstimatedTargetValue parameter should be removed from evaluation operators.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/SimpleGPEvaluatorBase.cs

    r2222 r2577  
    3333    }
    3434
    35     public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end, bool updateTargetValues) {
     35    public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end) {
    3636      // store original and estimated values in a double array
    3737      double[,] values = new double[end - start, 2];
     
    3939        double original = dataset.GetValue(sample, targetVariable);
    4040        double estimated = evaluator.Evaluate(sample);
    41         if (updateTargetValues) {
    42           dataset.SetValue(sample, targetVariable, estimated);
    43         }
     41       
    4442        values[sample - start, 0] = estimated;
    4543        values[sample - start, 1] = original;
Note: See TracChangeset for help on using the changeset viewer.