Changeset 8174
- Timestamp:
- 07/02/12 10:04:18 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleSolution.cs
r8167 r8174 88 88 } 89 89 90 trainingEvaluationCache = new Dictionary<int, double>(original.ProblemData.TrainingIndices.Count()); 91 testEvaluationCache = new Dictionary<int, double>(original.ProblemData.TestIndices.Count()); 92 90 93 classificationSolutions = cloner.Clone(original.classificationSolutions); 91 94 RegisterClassificationSolutionsEventHandler(); … … 130 133 throw new ArgumentException(); 131 134 } 135 136 trainingEvaluationCache = new Dictionary<int, double>(problemData.TrainingIndices.Count()); 137 testEvaluationCache = new Dictionary<int, double>(problemData.TestIndices.Count()); 132 138 133 139 RegisterClassificationSolutionsEventHandler(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolution.cs
r8139 r8174 44 44 public ClassificationSolution(IClassificationModel model, IClassificationProblemData problemData) 45 45 : base(model, problemData) { 46 evaluationCache = new Dictionary<int, double>( );46 evaluationCache = new Dictionary<int, double>(problemData.Dataset.Rows); 47 47 } 48 48 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r8167 r8174 89 89 } 90 90 91 trainingEvaluationCache = new Dictionary<int, double>(original.ProblemData.TrainingIndices.Count()); 92 testEvaluationCache = new Dictionary<int, double>(original.ProblemData.TestIndices.Count()); 93 91 94 regressionSolutions = cloner.Clone(original.regressionSolutions); 92 95 RegisterRegressionSolutionsEventHandler(); … … 135 138 throw new ArgumentException(); 136 139 } 140 141 trainingEvaluationCache = new Dictionary<int, double>(problemData.TrainingIndices.Count()); 142 testEvaluationCache = new Dictionary<int, double>(problemData.TestIndices.Count()); 137 143 138 144 RegisterRegressionSolutionsEventHandler();
Note: See TracChangeset
for help on using the changeset viewer.