Changeset 6590 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 07/25/11 16:57:08 (13 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
r6589 r6590 79 79 this.trainingPartitions = new Dictionary<IClassificationModel, IntRange>(); 80 80 this.testPartitions = new Dictionary<IClassificationModel, IntRange>(); 81 AddModelsAndPar itions(models,81 AddModelsAndPartitions(models, 82 82 trainingPartitions, 83 83 testPartitions); … … 191 191 } 192 192 193 private void AddModelsAndPar itions(IEnumerable<IClassificationModel> models, IEnumerable<IntRange> trainingPartitions, IEnumerable<IntRange> testPartitions) {193 private void AddModelsAndPartitions(IEnumerable<IClassificationModel> models, IEnumerable<IntRange> trainingPartitions, IEnumerable<IntRange> testPartitions) { 194 194 var modelEnumerator = models.GetEnumerator(); 195 195 var trainingPartitionEnumerator = trainingPartitions.GetEnumerator(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r6588 r6590 64 64 trainingPartitions = new Dictionary<IRegressionModel, IntRange>(); 65 65 testPartitions = new Dictionary<IRegressionModel, IntRange>(); 66 AddModelsAndPar itions(models,66 AddModelsAndPartitions(models, 67 67 from m in models select (IntRange)problemData.TrainingPartition.Clone(), 68 68 from m in models select (IntRange)problemData.TestPartition.Clone()); … … 74 74 this.trainingPartitions = new Dictionary<IRegressionModel, IntRange>(); 75 75 this.testPartitions = new Dictionary<IRegressionModel, IntRange>(); 76 AddModelsAndPar itions(models, trainingPartitions, testPartitions);76 AddModelsAndPartitions(models, trainingPartitions, testPartitions); 77 77 RecalculateResults(); 78 78 } … … 180 180 } 181 181 182 private void AddModelsAndPar itions(IEnumerable<IRegressionModel> models, IEnumerable<IntRange> trainingPartitions, IEnumerable<IntRange> testPartitions) {182 private void AddModelsAndPartitions(IEnumerable<IRegressionModel> models, IEnumerable<IntRange> trainingPartitions, IEnumerable<IntRange> testPartitions) { 183 183 var modelEnumerator = models.GetEnumerator(); 184 184 var trainingPartitionEnumerator = trainingPartitions.GetEnumerator();
Note: See TracChangeset
for help on using the changeset viewer.