Changeset 8591 for branches/ChangeDatasetOfRegressionModel/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification
- Timestamp:
- 09/06/12 15:37:05 (12 years ago)
- Location:
- branches/ChangeDatasetOfRegressionModel/HeuristicLab.Problems.DataAnalysis.Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ChangeDatasetOfRegressionModel/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
branches/ChangeDatasetOfRegressionModel/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.cs
r8513 r8591 96 96 } 97 97 98 int classValuesCount = Content.ProblemData.Class Values.Count;98 int classValuesCount = Content.ProblemData.Classes; 99 99 int solutionsCount = Content.ClassificationSolutions.Count(); 100 100 string[,] values = new string[indices.Length, 5 + classValuesCount + solutionsCount]; … … 114 114 estimatedValuesVector[i].GroupBy(x => x).Select(g => new { Key = g.Key, Count = g.Count() }).ToList(); 115 115 var estimationCount = groups.Where(g => g.Key != null).Select(g => g.Count).Sum(); 116 values[i, 4] = 117 (((double)groups.Where(g => g.Key == estimatedClassValues[i]).Single().Count) / estimationCount).ToString(); 118 for (int classIndex = 0; classIndex < Content.ProblemData.ClassValues.Count; classIndex++) { 119 var group = groups.Where(g => g.Key == Content.ProblemData.ClassValues[classIndex]).SingleOrDefault(); 116 values[i, 4] = (((double)groups.Where(g => g.Key == estimatedClassValues[i]).Single().Count) / estimationCount).ToString(); 117 for (int classIndex = 0; classIndex < Content.ProblemData.Classes; classIndex++) { 118 var group = groups.Where(g => g.Key == Content.ProblemData.ClassValues.ElementAt(classIndex)).SingleOrDefault(); 120 119 if (group == null) values[i, 5 + classIndex] = 0.ToString(); 121 120 else values[i, 5 + classIndex] = group.Count.ToString(); -
branches/ChangeDatasetOfRegressionModel/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs
r8513 r8591 238 238 double[] thresholds = Content.Model.Thresholds.ToArray(); 239 239 thresholds[classIndex] = e.NewLocationY; 240 Array.Sort(thresholds); 240 241 Content.Model.SetThresholdsAndClassValues(thresholds, Content.Model.ClassValues); 241 242 }
Note: See TracChangeset
for help on using the changeset viewer.