Changeset 7738
- Timestamp:
- 04/17/12 17:40:46 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r7259 r7738 295 295 symbolicProblem.FitnessCalculationPartition.End = SamplesEnd.Value; 296 296 } 297 297 clonedAlgorithm.Prepare(); 298 298 clonedAlgorithms.Add(clonedAlgorithm); 299 299 } … … 416 416 problemDataClone.TestPartition.Start = SamplesStart.Value; problemDataClone.TestPartition.End = SamplesEnd.Value; 417 417 // clone models 418 var ensembleSolution = new RegressionEnsembleSolution( 419 solutions.Value.Select(x => cloner.Clone(x.Model)), 420 problemDataClone, 421 solutions.Value.Select(x => cloner.Clone(x.ProblemData.TrainingPartition)), 422 solutions.Value.Select(x => cloner.Clone(x.ProblemData.TestPartition))); 418 var ensembleSolution = new RegressionEnsembleSolution(problemDataClone); 419 ensembleSolution.AddRegressionSolutions(solutions.Value); 423 420 424 421 aggregatedResults.Add(new Result(solutions.Key + " (ensemble)", ensembleSolution)); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/CreateEnsembleMenuItem.cs
r7259 r7738 73 73 .First() 74 74 .ProblemData.Clone(); 75 var ensemble = new RegressionEnsembleSolution( Enumerable.Empty<IRegressionModel>(),problemData);75 var ensemble = new RegressionEnsembleSolution(problemData); 76 76 ensemble.Name = group.Key + " ensemble"; 77 77 var nestedSolutions = group.OfType<RegressionEnsembleSolution>().SelectMany(e => e.RegressionSolutions); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r7259 r7738 97 97 98 98 RegisterRegressionSolutionsEventHandler(); 99 } 100 101 public RegressionEnsembleSolution(IRegressionProblemData problemData) 102 : this(Enumerable.Empty<IRegressionModel>(), problemData) { 99 103 } 100 104
Note: See TracChangeset
for help on using the changeset viewer.