- Timestamp:
- 05/26/11 17:55:44 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleSolution.cs
r6254 r6302 54 54 trainingPartitions = new Dictionary<IClassificationModel, IntRange>(); 55 55 testPartitions = new Dictionary<IClassificationModel, IntRange>(); 56 foreach (var model in Model.Models) { 57 trainingPartitions[model] = (IntRange)ProblemData.TrainingPartition.Clone(); 58 testPartitions[model] = (IntRange)ProblemData.TestPartition.Clone(); 56 foreach (var pair in original.trainingPartitions) { 57 trainingPartitions[cloner.Clone(pair.Key)] = cloner.Clone(pair.Value); 58 } 59 foreach (var pair in original.testPartitions) { 60 testPartitions[cloner.Clone(pair.Key)] = cloner.Clone(pair.Value); 59 61 } 60 62 RecalculateResults(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r6254 r6302 51 51 trainingPartitions = new Dictionary<IRegressionModel, IntRange>(); 52 52 testPartitions = new Dictionary<IRegressionModel, IntRange>(); 53 foreach (var model in Model.Models) { 54 trainingPartitions[model] = (IntRange)ProblemData.TrainingPartition.Clone(); 55 testPartitions[model] = (IntRange)ProblemData.TestPartition.Clone(); 53 foreach (var pair in original.trainingPartitions) { 54 trainingPartitions[cloner.Clone(pair.Key)] = cloner.Clone(pair.Value); 56 55 } 56 foreach (var pair in original.testPartitions) { 57 testPartitions[cloner.Clone(pair.Key)] = cloner.Clone(pair.Value); 58 } 59 RecalculateResults(); 57 60 } 58 61
Note: See TracChangeset
for help on using the changeset viewer.