Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/16/12 09:44:07 (12 years ago)
Author:
sforsten
Message:

#1776:

Location:
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
Files:
7 edited
6 copied

Legend:

Unmodified
Added
Removed
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views

  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionAccuracyToCoveredSamples.cs

    r8510 r8811  
    2828using HeuristicLab.Data;
    2929using HeuristicLab.MainForm;
    30 using HeuristicLab.Problems.DataAnalysis.Interfaces;
    3130
    3231namespace HeuristicLab.Problems.DataAnalysis.Views {
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionConfidenceAccuracyDependence.cs

    r8297 r8811  
    2727using HeuristicLab.Data;
    2828using HeuristicLab.MainForm;
    29 using HeuristicLab.Problems.DataAnalysis.Interfaces;
    3029
    3130namespace HeuristicLab.Problems.DataAnalysis.Views {
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.Designer.cs

    r8508 r8811  
    4646      this.SamplesComboBox = new System.Windows.Forms.ComboBox();
    4747      this.CorrectClassifiedConfidenceLabel = new System.Windows.Forms.Label();
    48       this.CorrectClassifiedConfidence = new System.Windows.Forms.Label();
    4948      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();
    5151      this.SuspendLayout();
    5252      //
     
    6868      this.SamplesComboBox.Location = new System.Drawing.Point(4, 4);
    6969      this.SamplesComboBox.Name = "SamplesComboBox";
    70       this.SamplesComboBox.Size = new System.Drawing.Size(309, 21);
     70      this.SamplesComboBox.Size = new System.Drawing.Size(230, 21);
    7171      this.SamplesComboBox.TabIndex = 2;
    7272      this.SamplesComboBox.SelectedIndexChanged += new System.EventHandler(this.SamplesComboBox_SelectedIndexChanged);
     
    7676      this.CorrectClassifiedConfidenceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    7777      this.CorrectClassifiedConfidenceLabel.AutoSize = true;
    78       this.CorrectClassifiedConfidenceLabel.Location = new System.Drawing.Point(319, 7);
     78      this.CorrectClassifiedConfidenceLabel.Location = new System.Drawing.Point(240, 7);
    7979      this.CorrectClassifiedConfidenceLabel.Name = "CorrectClassifiedConfidenceLabel";
    8080      this.CorrectClassifiedConfidenceLabel.Size = new System.Drawing.Size(103, 13);
     
    8282      this.CorrectClassifiedConfidenceLabel.Text = "Conf. Correct Class.:";
    8383      //
    84       // CorrectClassifiedConfidence
    85       //
    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       //
    9484      // WrongClassifiedConfidenceLabel
    9585      //
    9686      this.WrongClassifiedConfidenceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    9787      this.WrongClassifiedConfidenceLabel.AutoSize = true;
    98       this.WrongClassifiedConfidenceLabel.Location = new System.Drawing.Point(481, 7);
     88      this.WrongClassifiedConfidenceLabel.Location = new System.Drawing.Point(455, 7);
    9989      this.WrongClassifiedConfidenceLabel.Name = "WrongClassifiedConfidenceLabel";
    10090      this.WrongClassifiedConfidenceLabel.Size = new System.Drawing.Size(101, 13);
     
    10292      this.WrongClassifiedConfidenceLabel.Text = "Conf. Wrong Class.:";
    10393      //
     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      //
    104104      // WrongClassifiedConfidence
    105105      //
    106106      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);
    109108      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;
    112112      this.WrongClassifiedConfidence.Text = "0.0";
    113113      //
    114114      // ClassificationEnsembleSolutionEstimatedClassValuesView
    115115      //
    116       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    117116      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    118117      this.Controls.Add(this.WrongClassifiedConfidence);
     118      this.Controls.Add(this.CorrectClassifiedConfidence);
    119119      this.Controls.Add(this.WrongClassifiedConfidenceLabel);
    120       this.Controls.Add(this.CorrectClassifiedConfidence);
    121120      this.Controls.Add(this.CorrectClassifiedConfidenceLabel);
    122121      this.Controls.Add(this.SamplesComboBox);
     
    126125      this.Controls.SetChildIndex(this.SamplesComboBox, 0);
    127126      this.Controls.SetChildIndex(this.CorrectClassifiedConfidenceLabel, 0);
     127      this.Controls.SetChildIndex(this.WrongClassifiedConfidenceLabel, 0);
    128128      this.Controls.SetChildIndex(this.CorrectClassifiedConfidence, 0);
    129       this.Controls.SetChildIndex(this.WrongClassifiedConfidenceLabel, 0);
    130129      this.Controls.SetChildIndex(this.WrongClassifiedConfidence, 0);
    131130      this.ResumeLayout(false);
     
    138137    private System.Windows.Forms.ComboBox SamplesComboBox;
    139138    private System.Windows.Forms.Label CorrectClassifiedConfidenceLabel;
    140     private System.Windows.Forms.Label CorrectClassifiedConfidence;
    141139    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;
    143142
    144143  }
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.cs

    r8508 r8811  
    1919 */
    2020#endregion
     21
    2122using System;
    2223using System.Collections.Generic;
     
    2829using HeuristicLab.MainForm;
    2930using HeuristicLab.MainForm.WindowsForms;
    30 using HeuristicLab.Problems.DataAnalysis.Interfaces;
    3131
    3232namespace HeuristicLab.Problems.DataAnalysis.Views {
     
    9696
    9797      IEnumerable<IClassificationSolution> solutions = Content.ClassificationSolutions.CheckedItems;
    98       int classValuesCount = Content.ProblemData.ClassValues.Count;
     98      int classValuesCount = Content.ProblemData.Classes;
    9999      int solutionsCount = solutions.Count();
    100100      string[,] values = new string[indizes.Length, 5 + classValuesCount + solutionsCount];
     
    143143          var groups =
    144144            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();
    147148            if (group == null) values[i, 5 + classIndex] = 0.ToString();
    148149            else values[i, 5 + classIndex] = group.Count.ToString();
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationRocCurvesView.cs

    r8508 r8811  
    114114        maxThreshold += thresholdIncrement;
    115115
    116         List<double> classValues = Content.ProblemData.ClassValues.OrderBy(x => x).ToList();
     116        List<double> classValues = Content.Model.ClassValues.ToList();
    117117
    118118        foreach (double classValue in classValues) {
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs

    r8508 r8811  
    238238      double[] thresholds = Content.Model.Thresholds.ToArray();
    239239      thresholds[classIndex] = e.NewLocationY;
     240      Array.Sort(thresholds);
    240241      Content.Model.SetThresholdsAndClassValues(thresholds, Content.Model.ClassValues);
    241242    }
Note: See TracChangeset for help on using the changeset viewer.