Changeset 12820 for branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 07/30/15 18:42:18 (9 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 12787,12790-12795,12797-12798,12801,12810-12812,12816-12817,12819
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis (added) merged: 12790,12792,12816-12817
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleSolution.cs
r12509 r12820 49 49 } 50 50 51 [Storable] 51 52 private readonly ItemCollection<IClassificationSolution> classificationSolutions; 52 53 public IItemCollection<IClassificationSolution> ClassificationSolutions { … … 66 67 [StorableHook(HookType.AfterDeserialization)] 67 68 private void AfterDeserialization() { 68 foreach (var model in Model.Models) { 69 IClassificationProblemData problemData = (IClassificationProblemData)ProblemData.Clone(); 70 problemData.TrainingPartition.Start = trainingPartitions[model].Start; 71 problemData.TrainingPartition.End = trainingPartitions[model].End; 72 problemData.TestPartition.Start = testPartitions[model].Start; 73 problemData.TestPartition.End = testPartitions[model].End; 74 75 classificationSolutions.Add(model.CreateClassificationSolution(problemData)); 69 if (!classificationSolutions.Any()) { 70 foreach (var model in Model.Models) { 71 IClassificationProblemData problemData = (IClassificationProblemData)ProblemData.Clone(); 72 problemData.TrainingPartition.Start = trainingPartitions[model].Start; 73 problemData.TrainingPartition.End = trainingPartitions[model].End; 74 problemData.TestPartition.Start = testPartitions[model].Start; 75 problemData.TestPartition.End = testPartitions[model].End; 76 77 classificationSolutions.Add(model.CreateClassificationSolution(problemData)); 78 } 76 79 } 77 80 RegisterClassificationSolutionsEventHandler(); -
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleSolution.cs
r12509 r12820 50 50 } 51 51 52 [Storable] 52 53 private readonly ItemCollection<IRegressionSolution> regressionSolutions; 53 54 public IItemCollection<IRegressionSolution> RegressionSolutions { … … 67 68 [StorableHook(HookType.AfterDeserialization)] 68 69 private void AfterDeserialization() { 69 foreach (var model in Model.Models) { 70 IRegressionProblemData problemData = (IRegressionProblemData)ProblemData.Clone(); 71 problemData.TrainingPartition.Start = trainingPartitions[model].Start; 72 problemData.TrainingPartition.End = trainingPartitions[model].End; 73 problemData.TestPartition.Start = testPartitions[model].Start; 74 problemData.TestPartition.End = testPartitions[model].End; 75 76 regressionSolutions.Add(model.CreateRegressionSolution(problemData)); 70 if (!regressionSolutions.Any()) { 71 foreach (var model in Model.Models) { 72 IRegressionProblemData problemData = (IRegressionProblemData)ProblemData.Clone(); 73 problemData.TrainingPartition.Start = trainingPartitions[model].Start; 74 problemData.TrainingPartition.End = trainingPartitions[model].End; 75 problemData.TestPartition.Start = testPartitions[model].Start; 76 problemData.TestPartition.End = testPartitions[model].End; 77 78 regressionSolutions.Add(model.CreateRegressionSolution(problemData)); 79 } 77 80 } 78 81 RegisterRegressionSolutionsEventHandler();
Note: See TracChangeset
for help on using the changeset viewer.