Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/23/11 13:52:29 (14 years ago)
Author:
gkronber
Message:

#1418 Fixed a problem with scaling of regression and classification solutions (moved scale method out of solution into the model because of leaky abstraction).

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveTrainingBestSolutionAnalyzer.cs

    r5809 r5818  
    7777    protected override ISymbolicRegressionSolution CreateSolution(ISymbolicExpressionTree bestTree, double[] bestQuality) {
    7878      var model = new SymbolicRegressionModel(bestTree, SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper);
    79       var solution = new SymbolicRegressionSolution(model, ProblemDataParameter.ActualValue);
    8079      if (ApplyLinearScaling.Value)
    81         solution.ScaleModel();
    82       return solution;
     80        SymbolicRegressionModel.Scale(model, ProblemDataParameter.ActualValue);
     81      return new SymbolicRegressionSolution(model, ProblemDataParameter.ActualValue);
    8382    }
    8483  }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveValidationBestSolutionAnalyzer.cs

    r5809 r5818  
    6666    protected override ISymbolicRegressionSolution CreateSolution(ISymbolicExpressionTree bestTree, double[] bestQuality) {
    6767      var model = new SymbolicRegressionModel(bestTree, SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper);
    68       var solution = new SymbolicRegressionSolution(model, ProblemDataParameter.ActualValue);
    6968      if (ApplyLinearScaling.Value)
    70         solution.ScaleModel();
    71       return solution;
     69        SymbolicRegressionModel.Scale(model, ProblemDataParameter.ActualValue);
     70      return new SymbolicRegressionSolution(model, ProblemDataParameter.ActualValue);
    7271    }
    7372  }
Note: See TracChangeset for help on using the changeset viewer.