Changeset 8811 for branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification
- Timestamp:
- 10/16/12 09:44:07 (12 years ago)
- Location:
- branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
- Files:
-
- 7 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionAccuracyToCoveredSamples.cs
r8510 r8811 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.MainForm; 30 using HeuristicLab.Problems.DataAnalysis.Interfaces;31 30 32 31 namespace HeuristicLab.Problems.DataAnalysis.Views { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionConfidenceAccuracyDependence.cs
r8297 r8811 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.MainForm; 29 using HeuristicLab.Problems.DataAnalysis.Interfaces;30 29 31 30 namespace HeuristicLab.Problems.DataAnalysis.Views { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.Designer.cs
r8508 r8811 46 46 this.SamplesComboBox = new System.Windows.Forms.ComboBox(); 47 47 this.CorrectClassifiedConfidenceLabel = new System.Windows.Forms.Label(); 48 this.CorrectClassifiedConfidence = new System.Windows.Forms.Label();49 48 this.WrongClassifiedConfidenceLabel = new System.Windows.Forms.Label(); 50 this.WrongClassifiedConfidence = new System.Windows.Forms.Label(); 49 this.CorrectClassifiedConfidence = new System.Windows.Forms.TextBox(); 50 this.WrongClassifiedConfidence = new System.Windows.Forms.TextBox(); 51 51 this.SuspendLayout(); 52 52 // … … 68 68 this.SamplesComboBox.Location = new System.Drawing.Point(4, 4); 69 69 this.SamplesComboBox.Name = "SamplesComboBox"; 70 this.SamplesComboBox.Size = new System.Drawing.Size( 309, 21);70 this.SamplesComboBox.Size = new System.Drawing.Size(230, 21); 71 71 this.SamplesComboBox.TabIndex = 2; 72 72 this.SamplesComboBox.SelectedIndexChanged += new System.EventHandler(this.SamplesComboBox_SelectedIndexChanged); … … 76 76 this.CorrectClassifiedConfidenceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 77 77 this.CorrectClassifiedConfidenceLabel.AutoSize = true; 78 this.CorrectClassifiedConfidenceLabel.Location = new System.Drawing.Point( 319, 7);78 this.CorrectClassifiedConfidenceLabel.Location = new System.Drawing.Point(240, 7); 79 79 this.CorrectClassifiedConfidenceLabel.Name = "CorrectClassifiedConfidenceLabel"; 80 80 this.CorrectClassifiedConfidenceLabel.Size = new System.Drawing.Size(103, 13); … … 82 82 this.CorrectClassifiedConfidenceLabel.Text = "Conf. Correct Class.:"; 83 83 // 84 // CorrectClassifiedConfidence85 //86 this.CorrectClassifiedConfidence.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));87 this.CorrectClassifiedConfidence.AutoSize = true;88 this.CorrectClassifiedConfidence.Location = new System.Drawing.Point(428, 7);89 this.CorrectClassifiedConfidence.Name = "CorrectClassifiedConfidence";90 this.CorrectClassifiedConfidence.Size = new System.Drawing.Size(22, 13);91 this.CorrectClassifiedConfidence.TabIndex = 4;92 this.CorrectClassifiedConfidence.Text = "0.0";93 //94 84 // WrongClassifiedConfidenceLabel 95 85 // 96 86 this.WrongClassifiedConfidenceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 97 87 this.WrongClassifiedConfidenceLabel.AutoSize = true; 98 this.WrongClassifiedConfidenceLabel.Location = new System.Drawing.Point(4 81, 7);88 this.WrongClassifiedConfidenceLabel.Location = new System.Drawing.Point(455, 7); 99 89 this.WrongClassifiedConfidenceLabel.Name = "WrongClassifiedConfidenceLabel"; 100 90 this.WrongClassifiedConfidenceLabel.Size = new System.Drawing.Size(101, 13); … … 102 92 this.WrongClassifiedConfidenceLabel.Text = "Conf. Wrong Class.:"; 103 93 // 94 // CorrectClassifiedConfidence 95 // 96 this.CorrectClassifiedConfidence.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 97 this.CorrectClassifiedConfidence.Location = new System.Drawing.Point(349, 5); 98 this.CorrectClassifiedConfidence.Name = "CorrectClassifiedConfidence"; 99 this.CorrectClassifiedConfidence.ReadOnly = true; 100 this.CorrectClassifiedConfidence.Size = new System.Drawing.Size(100, 20); 101 this.CorrectClassifiedConfidence.TabIndex = 7; 102 this.CorrectClassifiedConfidence.Text = "0.0"; 103 // 104 104 // WrongClassifiedConfidence 105 105 // 106 106 this.WrongClassifiedConfidence.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 107 this.WrongClassifiedConfidence.AutoSize = true; 108 this.WrongClassifiedConfidence.Location = new System.Drawing.Point(588, 7); 107 this.WrongClassifiedConfidence.Location = new System.Drawing.Point(562, 4); 109 108 this.WrongClassifiedConfidence.Name = "WrongClassifiedConfidence"; 110 this.WrongClassifiedConfidence.Size = new System.Drawing.Size(22, 13); 111 this.WrongClassifiedConfidence.TabIndex = 6; 109 this.WrongClassifiedConfidence.ReadOnly = true; 110 this.WrongClassifiedConfidence.Size = new System.Drawing.Size(94, 20); 111 this.WrongClassifiedConfidence.TabIndex = 8; 112 112 this.WrongClassifiedConfidence.Text = "0.0"; 113 113 // 114 114 // ClassificationEnsembleSolutionEstimatedClassValuesView 115 115 // 116 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);117 116 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 118 117 this.Controls.Add(this.WrongClassifiedConfidence); 118 this.Controls.Add(this.CorrectClassifiedConfidence); 119 119 this.Controls.Add(this.WrongClassifiedConfidenceLabel); 120 this.Controls.Add(this.CorrectClassifiedConfidence);121 120 this.Controls.Add(this.CorrectClassifiedConfidenceLabel); 122 121 this.Controls.Add(this.SamplesComboBox); … … 126 125 this.Controls.SetChildIndex(this.SamplesComboBox, 0); 127 126 this.Controls.SetChildIndex(this.CorrectClassifiedConfidenceLabel, 0); 127 this.Controls.SetChildIndex(this.WrongClassifiedConfidenceLabel, 0); 128 128 this.Controls.SetChildIndex(this.CorrectClassifiedConfidence, 0); 129 this.Controls.SetChildIndex(this.WrongClassifiedConfidenceLabel, 0);130 129 this.Controls.SetChildIndex(this.WrongClassifiedConfidence, 0); 131 130 this.ResumeLayout(false); … … 138 137 private System.Windows.Forms.ComboBox SamplesComboBox; 139 138 private System.Windows.Forms.Label CorrectClassifiedConfidenceLabel; 140 private System.Windows.Forms.Label CorrectClassifiedConfidence;141 139 private System.Windows.Forms.Label WrongClassifiedConfidenceLabel; 142 private System.Windows.Forms.Label WrongClassifiedConfidence; 140 private System.Windows.Forms.TextBox CorrectClassifiedConfidence; 141 private System.Windows.Forms.TextBox WrongClassifiedConfidence; 143 142 144 143 } -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.cs
r8508 r8811 19 19 */ 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; … … 28 29 using HeuristicLab.MainForm; 29 30 using HeuristicLab.MainForm.WindowsForms; 30 using HeuristicLab.Problems.DataAnalysis.Interfaces;31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Views { … … 96 96 97 97 IEnumerable<IClassificationSolution> solutions = Content.ClassificationSolutions.CheckedItems; 98 int classValuesCount = Content.ProblemData.Class Values.Count;98 int classValuesCount = Content.ProblemData.Classes; 99 99 int solutionsCount = solutions.Count(); 100 100 string[,] values = new string[indizes.Length, 5 + classValuesCount + solutionsCount]; … … 143 143 var groups = 144 144 estimatedValuesVector[i].GroupBy(x => x).Select(g => new { Key = g.Key, Count = g.Count() }).ToList(); 145 for (int classIndex = 0; classIndex < Content.ProblemData.ClassValues.Count; classIndex++) { 146 var group = groups.Where(g => g.Key == Content.ProblemData.ClassValues[classIndex]).SingleOrDefault(); 145 146 for (int classIndex = 0; classIndex < Content.ProblemData.Classes; classIndex++) { 147 var group = groups.Where(g => g.Key == Content.ProblemData.ClassValues.ElementAt(classIndex)).SingleOrDefault(); 147 148 if (group == null) values[i, 5 + classIndex] = 0.ToString(); 148 149 else values[i, 5 + classIndex] = group.Count.ToString(); -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationRocCurvesView.cs
r8508 r8811 114 114 maxThreshold += thresholdIncrement; 115 115 116 List<double> classValues = Content. ProblemData.ClassValues.OrderBy(x => x).ToList();116 List<double> classValues = Content.Model.ClassValues.ToList(); 117 117 118 118 foreach (double classValue in classValues) { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs
r8508 r8811 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.