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.)

Location:
trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalEvaluatorBase.cs

    r1926 r2577  
    4040    }
    4141
    42     public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end, bool updateTargetValues) {
     42    public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end) {
    4343      int maxTimeOffset = GetVariableValue<IntData>("MaxTimeOffset", scope, true).Data;
    4444      int minTimeOffset = GetVariableValue<IntData>("MinTimeOffset", scope, true).Data;
     
    6060          double original = dataset.GetValue(sample, targetVariable);
    6161          double estimated = evaluator.Evaluate(sample);
    62           if (updateTargetValues) {
    63             dataset.SetValue(sample, targetVariable, estimated);
    64           }
     62         
    6563          values[sample - start - skippedSampels, 0] = estimated;
    6664          values[sample - start - skippedSampels, 1] = original;
    6765        }
    6866      }
    69       //needed because otherwise the array is too larged dimension and therefore the sample count is false during calculation
     67      //needed because otherwise the array is too large and therefore the sample count is incorrect during calculation
    7068      ResizeArray(ref values, 2, end - start - skippedSampels);
    7169
  • trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalSimpleEvaluator.cs

    r1916 r2577  
    3838    }
    3939
    40     public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end, bool updateTargetValues) {
     40    public override void Evaluate(IScope scope, ITreeEvaluator evaluator, Dataset dataset, int targetVariable, int start, int end) {
    4141      ItemList values = GetVariableValue<ItemList>("Values", scope, false, false);
    4242      if (values == null) {
     
    6868          double estimated = evaluator.Evaluate(sample);
    6969          double original = dataset.GetValue(sample, targetVariable);
    70           if (updateTargetValues) {
    71             dataset.SetValue(sample, targetVariable, estimated);
    72           }
     70         
    7371          row.Add(new DoubleData(estimated));
    7472          row.Add(new DoubleData(original));
Note: See TracChangeset for help on using the changeset viewer.