- Timestamp:
- 09/15/11 17:36:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/RunCollectionVariableImpactView.cs
r6766 r6775 104 104 select r; 105 105 if (comboBox.SelectedIndex == 0) { 106 var selectedFolds = cvRuns.SelectMany(r => (RunCollection)r.Results[crossValidationFoldsResultName]); 106 var selectedFolds = cvRuns 107 .SelectMany(r => (RunCollection)r.Results[crossValidationFoldsResultName]) 108 .Where(r => r.Results.ContainsKey(variableImpactResultName)); 107 109 matrixView.Content = CalculateVariableImpactMatrix(selectedFolds.ToArray()); 108 110 } else { 109 111 var selectedFolds = from r in cvRuns 110 112 let foldCollection = (RunCollection)r.Results[crossValidationFoldsResultName] 111 select (IRun)foldCollection.ElementAt(comboBox.SelectedIndex - 1).Clone(); 112 matrixView.Content = CalculateVariableImpactMatrix(selectedFolds.ToArray(), cvRuns.Select(r => r.Name).ToArray()); 113 let run = foldCollection.ElementAt(comboBox.SelectedIndex - 1) 114 where run.Results.ContainsKey(variableImpactResultName) 115 select new { run, r.Name }; 116 matrixView.Content = CalculateVariableImpactMatrix(selectedFolds.Select(x => x.run).ToArray(), selectedFolds.Select(x => x.Name).ToArray()); 113 117 } 114 118 } … … 135 139 comboBox.SelectedIndex = 0; 136 140 comboBox.Enabled = true; 137 var selectedFolds = cvRuns.SelectMany(r => (RunCollection)r.Results[crossValidationFoldsResultName]);138 matrixView.Content = CalculateVariableImpactMatrix(selectedFolds.ToArray());139 141 } else { 140 142 matrixView.Content = null;
Note: See TracChangeset
for help on using the changeset viewer.