Changeset 6239 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationSolutionConfusionMatrixView.cs
- Timestamp:
- 05/20/11 16:10:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationSolutionConfusionMatrixView.cs
r5975 r6239 103 103 IEnumerable<int> rows; 104 104 105 double[] predictedValues; 105 106 if (cmbSamples.SelectedItem.ToString() == TrainingSamples) { 106 107 rows = Content.ProblemData.TrainingIndizes; 108 predictedValues = Content.EstimatedTrainingClassValues.ToArray(); 107 109 } else if (cmbSamples.SelectedItem.ToString() == TestSamples) { 108 110 rows = Content.ProblemData.TestIndizes; 111 predictedValues = Content.EstimatedTestClassValues.ToArray(); 109 112 } else throw new InvalidOperationException(); 113 114 double[] targetValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(Content.ProblemData.TargetVariable, rows).ToArray(); 110 115 111 116 Dictionary<double, int> classValueIndexMapping = new Dictionary<double, int>(); … … 115 120 index++; 116 121 } 117 118 double[] targetValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(Content.ProblemData.TargetVariable, rows).ToArray();119 double[] predictedValues = Content.GetEstimatedClassValues(rows).ToArray();120 122 121 123 for (int i = 0; i < targetValues.Length; i++) {
Note: See TracChangeset
for help on using the changeset viewer.