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/SimpleEvaluator.cs

    r2222 r2577  
    3131    }
    3232
    33     public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end, bool updateTargetValues) {
     33    public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end) {
    3434      DoubleMatrixData values = GetVariableValue<DoubleMatrixData>("Values", scope, false, false);
    3535      if (values == null) {
     
    4747        double estimated = evaluator.Evaluate(sample);
    4848        double original = dataset.GetValue(sample, targetVariable);
    49         if (updateTargetValues) {
    50           dataset.SetValue(sample, targetVariable, estimated);
    51         }
     49       
    5250        v[sample - start, 0] = original;
    5351        v[sample - start, 1] = estimated;
Note: See TracChangeset for help on using the changeset viewer.