Changeset 8963
- Timestamp:
- 11/28/12 11:49:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
r8139 r8963 235 235 private IRegressionSolution CreateConstantModel() { 236 236 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()); 238 239 solution.Name = "Baseline"; 239 240 return solution;
Note: See TracChangeset
for help on using the changeset viewer.