Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 19:29:57 (13 years ago)
Author:
gkronber
Message:

#1418 fixed evaluator call from validation analyzers, fixed bugs in interactive simplifier view and added apply linear scaling flag to analyzers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectiveValidationBestSolutionAnalyzer.cs

    r5613 r5722  
    8787      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>(QualityParameterName, "The qualities of the trees that should be analyzed."));
    8888      Parameters.Add(new LookupParameter<BoolValue>(MaximizationParameterName, "The direction of optimization."));
    89       Parameters.Add(new LookupParameter<T>(ValidationBestSolutionParameterName, "The validation best symbolic data analyis solution."));
     89      Parameters.Add(new LookupParameter<S>(ValidationBestSolutionParameterName, "The validation best symbolic data analyis solution."));
    9090      Parameters.Add(new LookupParameter<DoubleValue>(ValidationBestSolutionQualityParameterName, "The quality of the validation best symbolic data analysis solution."));
    9191    }
     
    101101      int end = ValidationSamplesEnd.Value;
    102102      IEnumerable<int> rows = Enumerable.Range(start, end - start);
     103      IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(evaluator);
    103104      for (int i = 0; i < tree.Length; i++) {
    104         quality[i] = evaluator.Evaluate(ExecutionContext, tree[i], ProblemData, rows);
     105        quality[i] = evaluator.Evaluate(childContext, tree[i], ProblemData, rows);
    105106        if (IsBetter(quality[i], bestQuality, Maximization.Value)) {
    106107          bestQuality = quality[i];
Note: See TracChangeset for help on using the changeset viewer.