Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/30/11 13:14:12 (13 years ago)
Author:
gkronber
Message:

#1418 renamed parameter and updated all validation analyzers to leave out test samples if the validation partition overlaps with the test partition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectiveValidationBestSolutionAnalyzer.cs

    r5809 r5882  
    7676      double bestQuality = Maximization.Value ? double.NegativeInfinity : double.PositiveInfinity;
    7777      ISymbolicExpressionTree bestTree = null;
    78       ISymbolicExpressionTree[] tree = SymbolicExpressionTrees.ToArray();
     78      ISymbolicExpressionTree[] tree = SymbolicExpressionTree.ToArray();
    7979      double[] quality = new double[tree.Length];
    8080      var evaluator = EvaluatorParameter.ActualValue;
    81       int start = ValidationPartitionParameter.ActualValue.Start;
    82       int end = ValidationPartitionParameter.ActualValue.End;
    83       int count = (int)((end - start) * RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value);
    84       if (count <= 0) return base.Apply();
     81      IEnumerable<int> rows = GenerateRowsToEvaluate();
     82      if (rows.Count() <= 0) return base.Apply();
    8583
    86       IEnumerable<int> rows = RandomEnumerable.SampleRandomNumbers(start, end, count);
    8784      IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(evaluator);
    8885      for (int i = 0; i < tree.Length; i++) {
Note: See TracChangeset for help on using the changeset viewer.