- Timestamp:
- 11/13/15 21:19:15 (9 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13100-13104,13154
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
r13062 r13156 292 292 private IRegressionSolution CreateConstantSolution() { 293 293 double averageTrainingTarget = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndices).Average(); 294 var model = new Constant RegressionModel(averageTrainingTarget);295 var solution = new ConstantRegressionSolution(model, (IRegressionProblemData)ProblemData.Clone());294 var model = new ConstantModel(averageTrainingTarget); 295 var solution = model.CreateRegressionSolution(ProblemData); 296 296 solution.Name = "Baseline (constant)"; 297 297 return solution;
Note: See TracChangeset
for help on using the changeset viewer.