Changeset 7531 for branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification
- Timestamp:
- 02/27/12 16:11:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.cs
r7464 r7531 102 102 List<List<double?>> estimatedValuesVector = GetEstimatedValues(SamplesComboBox.SelectedItem.ToString(), indizes, 103 103 Content.ClassificationSolutions); 104 List<double> weights = Content.Weights.ToList();105 double weightSum = weights.Sum();104 //List<double> weights = Content.Weights.ToList(); 105 //double weightSum = weights.Sum(); 106 106 107 107 for (int i = 0; i < indizes.Length; i++) { … … 114 114 values[i, 3] = (target[i].IsAlmost(estimatedClassValues[i])).ToString(); 115 115 116 IEnumerable<int> indices = FindAllIndices(estimatedValuesVector[i], estimatedClassValues[i]); 117 double confidence = 0.0; 118 foreach (var index in indices) { 119 confidence += weights[index]; 120 } 121 values[i, 4] = (confidence / weightSum).ToString(); 116 //currently disabled for test purpose 117 118 //IEnumerable<int> indices = FindAllIndices(estimatedValuesVector[i], estimatedClassValues[i]); 119 //double confidence = 0.0; 120 //foreach (var index in indices) { 121 // confidence += weights[index]; 122 //} 123 //values[i, 4] = (confidence / weightSum).ToString(); 122 124 //var estimationCount = groups.Where(g => g.Key != null).Select(g => g.Count).Sum(); 123 125 //values[i, 4] = 124 126 // (((double)groups.Where(g => g.Key == estimatedClassValues[i]).Single().Count) / estimationCount).ToString(); 127 values[i, 4] = "1.0"; 125 128 126 129 var groups =
Note: See TracChangeset
for help on using the changeset viewer.