Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/22/10 11:22:49 (14 years ago)
Author:
mkommend
Message:

Preparation for cross validation - removed the test samples from the trainining samples and added ValidationPercentage parameter (ticket #1199).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/BestSymbolicRegressionSolutionAnalyzer.cs

    r4125 r4468  
    9191        var model = new SymbolicRegressionModel((ISymbolicExpressionTreeInterpreter)SymbolicExpressionTreeInterpreter.Clone(),
    9292          SymbolicExpressionTree[i]);
    93         var solution = new SymbolicRegressionSolution(ProblemData, model, lowerEstimationLimit, upperEstimationLimit);
     93        DataAnalysisProblemData problemDataClone = (DataAnalysisProblemData)ProblemData.Clone();
     94        var solution = new SymbolicRegressionSolution(problemDataClone, model, lowerEstimationLimit, upperEstimationLimit);
    9495        solution.Name = BestSolutionParameterName;
    9596        solution.Description = "Best solution on validation partition found over the whole run.";
    9697        BestSolutionParameter.ActualValue = solution;
    9798        BestSolutionQualityParameter.ActualValue = Quality[i];
    98         BestSymbolicRegressionSolutionAnalyzer.UpdateSymbolicRegressionBestSolutionResults(solution, ProblemData, Results, VariableFrequencies);
     99        BestSymbolicRegressionSolutionAnalyzer.UpdateSymbolicRegressionBestSolutionResults(solution, problemDataClone, Results, VariableFrequencies);
    99100      }
    100101      return BestSolutionParameter.ActualValue;
Note: See TracChangeset for help on using the changeset viewer.