Changeset 8742 for branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
- Timestamp:
- 10/05/12 11:58:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r7738 r8742 44 44 45 45 executionState = ExecutionState.Stopped; 46 runs = new RunCollection ();46 runs = new RunCollection { AlgorithmName = name }; 47 47 runsCounter = 0; 48 48 … … 246 246 #endregion 247 247 248 protected override void OnNameChanged() { 249 base.OnNameChanged(); 250 Runs.AlgorithmName = Name; 251 } 252 248 253 public void Prepare() { 249 254 if (ExecutionState == ExecutionState.Started) … … 447 452 problemDataClone.TestPartition.Start = SamplesStart.Value; problemDataClone.TestPartition.End = SamplesEnd.Value; 448 453 // clone models 449 var ensembleSolution = new ClassificationEnsembleSolution( 450 solutions.Value.Select(x => cloner.Clone(x.Model)), 451 problemDataClone, 452 solutions.Value.Select(x => cloner.Clone(x.ProblemData.TrainingPartition)), 453 solutions.Value.Select(x => cloner.Clone(x.ProblemData.TestPartition))); 454 var ensembleSolution = new ClassificationEnsembleSolution(problemDataClone); 455 ensembleSolution.AddClassificationSolutions(solutions.Value); 454 456 455 457 aggregatedResults.Add(new Result(solutions.Key + " (ensemble)", ensembleSolution));
Note: See TracChangeset
for help on using the changeset viewer.