Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/28/12 11:49:10 (12 years ago)
Author:
mkommend
Message:

#1920: Corrected problem in RegressionSolutionErrorCharacteristicsCurveView regarding calculating the constant model.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs

    r8139 r8963  
    235235    private IRegressionSolution CreateConstantModel() {
    236236      double averageTrainingTarget = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndices).Average();
    237       var solution = new ConstantRegressionModel(averageTrainingTarget).CreateRegressionSolution(ProblemData);
     237      var model = new ConstantRegressionModel(averageTrainingTarget);
     238      var solution = new ConstantRegressionSolution(model,(IRegressionProblemData)ProblemData.Clone());
    238239      solution.Name = "Baseline";
    239240      return solution;
Note: See TracChangeset for help on using the changeset viewer.