Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/29/08 16:30:36 (16 years ago)
Author:
gkronber
Message:

fixed #156 (All GP-evaluators should update the number of total evaluated nodes)

File:
1 edited

Legend:

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

    r396 r400  
    7171      }
    7272      int nSamples = trainingEnd - trainingStart;
    73       double quality = Math.Sqrt(errorsSquaredSum / nSamples) / (Math.Sqrt(estimatedSquaredSum/nSamples) + Math.Sqrt(originalSquaredSum/nSamples));
     73      scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data = totalEvaluatedNodes + treeSize * nSamples;
     74      double quality = Math.Sqrt(errorsSquaredSum / nSamples) / (Math.Sqrt(estimatedSquaredSum / nSamples) + Math.Sqrt(originalSquaredSum / nSamples));
    7475      if(double.IsNaN(quality) || double.IsInfinity(quality))
    7576        quality = double.MaxValue;
Note: See TracChangeset for help on using the changeset viewer.