Changeset 13082 for branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems
- Timestamp:
- 10/29/15 18:29:17 (9 years ago)
- Location:
- branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/CreateEnsembleMenuItem.cs
r10553 r13082 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 113 113 var cloner = new Cloner(); 114 114 var allResults = from r in runs 115 where r.Visible 115 116 select r.Results; 116 117 return from r in allResults 117 118 from result in r 118 let s = cloner.Clone(result.Value) as IDataAnalysisSolution 119 where s != null 119 let solution = result.Value as IDataAnalysisSolution 120 where solution != null 121 let s = (IDataAnalysisSolution)cloner.Clone(result.Value) 120 122 select new KeyValuePair<string, IDataAnalysisSolution>(result.Key, s); 121 123 } -
branches/ClassificationModelComparison/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/ShrinkDataAnalysisRunsMenuItem.cs
r10553 r13082 2 2 3 3 /* HeuristicLab 4 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)4 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 5 5 * 6 6 * This file is part of HeuristicLab. … … 82 82 var variableValuesMapping = new Dictionary<ValuesType, ValuesType>(); 83 83 foreach (var problemData in view.Content.GetObjectGraphObjects(excludeStaticMembers: true).OfType<IDataAnalysisProblemData>()) { 84 var originalValues = variableValuesGetter(problemData.Dataset); 84 var dataset = problemData.Dataset as Dataset; 85 if (dataset == null) continue; 86 var originalValues = variableValuesGetter(dataset); 85 87 var matchingValues = GetEqualValues(originalValues, variableValuesMapping); 86 variableValuesSetter( problemData.Dataset, matchingValues);88 variableValuesSetter(dataset, matchingValues); 87 89 } 88 90 };
Note: See TracChangeset
for help on using the changeset viewer.