Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/08 17:30:24 (16 years ago)
Author:
gkronber
Message:
  • implemented operator to store the best of run solution, in regard of a specific fitness variable).
  • adapted struct-id infrastructure to allow evaluation of models on validation data.

ticket #194

File:
1 edited

Legend:

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

    r155 r363  
    4747      double originalDeviationTotalSumOfSquares = 0.0;
    4848      double targetMean = dataset.GetMean(targetVariable);
     49      functionTree.PrepareEvaluation(dataset);
    4950      for(int sample = 0; sample < dataset.Rows; sample++) {
    50         double estimated = functionTree.Evaluate(dataset, sample);
     51        double estimated = functionTree.Evaluate(sample);
    5152        double original = dataset.GetValue(sample, targetVariable);
    5253        if(!double.IsNaN(original) && !double.IsInfinity(original)) {
Note: See TracChangeset for help on using the changeset viewer.