Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/30/11 13:14:12 (14 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/SymbolicDataAnalysisMultiObjectiveValidationBestSolutionAnalyzer.cs

    r5809 r5882  
    7575
    7676    public override IOperation Apply() {
    77       int start = ValidationPartitionParameter.ActualValue.Start;
    78       int end = ValidationPartitionParameter.ActualValue.End;
    79       int count = (int)((end - start) * RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value);
    80       if (count <= 0) return base.Apply();
     77      IEnumerable<int> rows = GenerateRowsToEvaluate();
     78      if (rows.Count() <= 0) return base.Apply();
    8179
    8280      var results = ResultCollection;
     
    9593      #region find best trees
    9694      IList<int> nonDominatedIndexes = new List<int>();
    97       ISymbolicExpressionTree[] tree = SymbolicExpressionTrees.ToArray();
     95      ISymbolicExpressionTree[] tree = SymbolicExpressionTree.ToArray();
    9896      List<double[]> qualities = new List<double[]>();
    9997      bool[] maximization = Maximization.ToArray();
    10098      List<double[]> newNonDominatedQualities = new List<double[]>();
    10199      var evaluator = EvaluatorParameter.ActualValue;
    102       IEnumerable<int> rows = RandomEnumerable.SampleRandomNumbers(start, end, count);
    103100      IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(evaluator);
    104101      for (int i = 0; i < tree.Length; i++) {
Note: See TracChangeset for help on using the changeset viewer.