Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/19 14:40:15 (5 years ago)
Author:
pfleck
Message:

#2972 Improved initialization and added a tooltip.

Location:
branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionPartialDependencePlotView.Designer.cs

    r16516 r16517  
    2525    private void InitializeComponent() {
    2626      this.components = new System.ComponentModel.Container();
     27      this.variableValuesModeComboBox = new System.Windows.Forms.ComboBox();
     28      this.configSplitContainer = new System.Windows.Forms.SplitContainer();
     29      this.variableGroupBox = new System.Windows.Forms.GroupBox();
    2730      this.variableListView = new System.Windows.Forms.ListView();
    28       this.partialDependencePlotTableLayout = new System.Windows.Forms.TableLayoutPanel();
    29       this.yAxisConfigGroupBox = new System.Windows.Forms.GroupBox();
    30       this.limitView = new HeuristicLab.Problems.DataAnalysis.Views.DoubleLimitView();
    31       this.automaticYAxisCheckBox = new System.Windows.Forms.CheckBox();
     31      this.rowSelectGroupBox = new System.Windows.Forms.GroupBox();
     32      this.rowLabel = new System.Windows.Forms.Label();
     33      this.rowNrNumericUpDown = new System.Windows.Forms.NumericUpDown();
    3234      this.densityGroupBox = new System.Windows.Forms.GroupBox();
    3335      this.columnsNumericUpDown = new System.Windows.Forms.NumericUpDown();
    3436      this.columnsLabel = new System.Windows.Forms.Label();
    3537      this.densityComboBox = new System.Windows.Forms.ComboBox();
    36       this.label1 = new System.Windows.Forms.Label();
    37       this.configSplitContainer = new System.Windows.Forms.SplitContainer();
    38       this.variableGroupBox = new System.Windows.Forms.GroupBox();
    39       this.rowSelectGroupBox = new System.Windows.Forms.GroupBox();
    40       this.variableValuesModeComboBox = new System.Windows.Forms.ComboBox();
    41       this.rowLabel = new System.Windows.Forms.Label();
    42       this.rowNrNumericUpDown = new System.Windows.Forms.NumericUpDown();
     38      this.densityLabel = new System.Windows.Forms.Label();
     39      this.yAxisConfigGroupBox = new System.Windows.Forms.GroupBox();
     40      this.limitView = new HeuristicLab.Problems.DataAnalysis.Views.DoubleLimitView();
     41      this.automaticYAxisCheckBox = new System.Windows.Forms.CheckBox();
    4342      this.scrollPanel = new System.Windows.Forms.Panel();
     43      this.partialDependencePlotTableLayout = new System.Windows.Forms.TableLayoutPanel();
    4444      this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
    45       this.yAxisConfigGroupBox.SuspendLayout();
    46       this.densityGroupBox.SuspendLayout();
    47       ((System.ComponentModel.ISupportInitialize)(this.columnsNumericUpDown)).BeginInit();
     45      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    4846      ((System.ComponentModel.ISupportInitialize)(this.configSplitContainer)).BeginInit();
    4947      this.configSplitContainer.Panel1.SuspendLayout();
     
    5351      this.rowSelectGroupBox.SuspendLayout();
    5452      ((System.ComponentModel.ISupportInitialize)(this.rowNrNumericUpDown)).BeginInit();
     53      this.densityGroupBox.SuspendLayout();
     54      ((System.ComponentModel.ISupportInitialize)(this.columnsNumericUpDown)).BeginInit();
     55      this.yAxisConfigGroupBox.SuspendLayout();
    5556      this.scrollPanel.SuspendLayout();
    5657      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5758      this.SuspendLayout();
     59      //
     60      // variableValuesModeComboBox
     61      //
     62      this.variableValuesModeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     63      this.variableValuesModeComboBox.Items.AddRange(new object[] {
     64            "Row",
     65            "Mean",
     66            "Median",
     67            "Most Common"});
     68      this.variableValuesModeComboBox.Location = new System.Drawing.Point(10, 19);
     69      this.variableValuesModeComboBox.Name = "variableValuesModeComboBox";
     70      this.variableValuesModeComboBox.Size = new System.Drawing.Size(150, 21);
     71      this.variableValuesModeComboBox.TabIndex = 3;
     72      this.variableValuesModeComboBox.SelectedValueChanged += new System.EventHandler(this.variableValuesComboBox_SelectedValueChanged);
     73      this.variableValuesModeComboBox.MouseLeave += new System.EventHandler(this.variableValuesModeComboBox_MouseLeave);
     74      this.variableValuesModeComboBox.MouseHover += new System.EventHandler(this.variableValuesModeComboBox_MouseHover);
     75      //
     76      // configSplitContainer
     77      //
     78      this.configSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
     79      this.configSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     80      this.configSplitContainer.Location = new System.Drawing.Point(0, 0);
     81      this.configSplitContainer.Name = "configSplitContainer";
     82      //
     83      // configSplitContainer.Panel1
     84      //
     85      this.configSplitContainer.Panel1.Controls.Add(this.variableGroupBox);
     86      this.configSplitContainer.Panel1.Controls.Add(this.rowSelectGroupBox);
     87      this.configSplitContainer.Panel1.Controls.Add(this.densityGroupBox);
     88      this.configSplitContainer.Panel1.Controls.Add(this.yAxisConfigGroupBox);
     89      //
     90      // configSplitContainer.Panel2
     91      //
     92      this.configSplitContainer.Panel2.Controls.Add(this.scrollPanel);
     93      this.configSplitContainer.Size = new System.Drawing.Size(715, 648);
     94      this.configSplitContainer.SplitterDistance = 169;
     95      this.configSplitContainer.TabIndex = 0;
     96      this.configSplitContainer.TabStop = false;
     97      //
     98      // variableGroupBox
     99      //
     100      this.variableGroupBox.Controls.Add(this.variableListView);
     101      this.variableGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
     102      this.variableGroupBox.Location = new System.Drawing.Point(0, 225);
     103      this.variableGroupBox.Name = "variableGroupBox";
     104      this.variableGroupBox.Size = new System.Drawing.Size(169, 423);
     105      this.variableGroupBox.TabIndex = 1;
     106      this.variableGroupBox.TabStop = false;
     107      this.variableGroupBox.Text = "Variables";
    58108      //
    59109      // variableListView
     
    69119      this.variableListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.variableListView_ItemChecked);
    70120      //
    71       // partialDependencePlotTableLayout
    72       //
    73       this.partialDependencePlotTableLayout.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    74             | System.Windows.Forms.AnchorStyles.Right)));
    75       this.partialDependencePlotTableLayout.AutoSize = true;
    76       this.partialDependencePlotTableLayout.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
    77       this.partialDependencePlotTableLayout.ColumnCount = 1;
    78       this.partialDependencePlotTableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
    79       this.partialDependencePlotTableLayout.Location = new System.Drawing.Point(0, 0);
    80       this.partialDependencePlotTableLayout.Name = "partialDependencePlotTableLayout";
    81       this.partialDependencePlotTableLayout.RowCount = 1;
    82       this.partialDependencePlotTableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
    83       this.partialDependencePlotTableLayout.Size = new System.Drawing.Size(542, 0);
    84       this.partialDependencePlotTableLayout.TabIndex = 2;
    85       //
    86       // yAxisConfigGroupBox
    87       //
    88       this.yAxisConfigGroupBox.Controls.Add(this.limitView);
    89       this.yAxisConfigGroupBox.Controls.Add(this.automaticYAxisCheckBox);
    90       this.yAxisConfigGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
    91       this.yAxisConfigGroupBox.Location = new System.Drawing.Point(0, 0);
    92       this.yAxisConfigGroupBox.Name = "yAxisConfigGroupBox";
    93       this.yAxisConfigGroupBox.Size = new System.Drawing.Size(169, 77);
    94       this.yAxisConfigGroupBox.TabIndex = 2;
    95       this.yAxisConfigGroupBox.TabStop = false;
    96       this.yAxisConfigGroupBox.Text = "Y-Axis";
    97       //
    98       // limitView
    99       //
    100       this.limitView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    101             | System.Windows.Forms.AnchorStyles.Right)));
    102       this.limitView.Caption = "DoubleLimit View";
    103       this.limitView.Content = null;
    104       this.limitView.Location = new System.Drawing.Point(6, 20);
    105       this.limitView.Name = "limitView";
    106       this.limitView.ReadOnly = false;
    107       this.limitView.Size = new System.Drawing.Size(157, 47);
    108       this.limitView.TabIndex = 1;
    109       //
    110       // automaticYAxisCheckBox
    111       //
    112       this.automaticYAxisCheckBox.AutoSize = true;
    113       this.automaticYAxisCheckBox.Location = new System.Drawing.Point(49, -1);
    114       this.automaticYAxisCheckBox.Name = "automaticYAxisCheckBox";
    115       this.automaticYAxisCheckBox.Size = new System.Drawing.Size(73, 17);
    116       this.automaticYAxisCheckBox.TabIndex = 0;
    117       this.automaticYAxisCheckBox.Text = "Automatic";
    118       this.automaticYAxisCheckBox.UseVisualStyleBackColor = true;
    119       this.automaticYAxisCheckBox.CheckedChanged += new System.EventHandler(this.automaticYAxisCheckBox_CheckedChanged);
     121      // rowSelectGroupBox
     122      //
     123      this.rowSelectGroupBox.Controls.Add(this.variableValuesModeComboBox);
     124      this.rowSelectGroupBox.Controls.Add(this.rowLabel);
     125      this.rowSelectGroupBox.Controls.Add(this.rowNrNumericUpDown);
     126      this.rowSelectGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
     127      this.rowSelectGroupBox.Location = new System.Drawing.Point(0, 151);
     128      this.rowSelectGroupBox.Name = "rowSelectGroupBox";
     129      this.rowSelectGroupBox.Size = new System.Drawing.Size(169, 74);
     130      this.rowSelectGroupBox.TabIndex = 1;
     131      this.rowSelectGroupBox.TabStop = false;
     132      this.rowSelectGroupBox.Text = "Variable Values";
     133      //
     134      // rowLabel
     135      //
     136      this.rowLabel.AutoSize = true;
     137      this.rowLabel.Location = new System.Drawing.Point(7, 48);
     138      this.rowLabel.Name = "rowLabel";
     139      this.rowLabel.Size = new System.Drawing.Size(46, 13);
     140      this.rowLabel.TabIndex = 2;
     141      this.rowLabel.Text = "Row Nr.";
     142      //
     143      // rowNrNumericUpDown
     144      //
     145      this.rowNrNumericUpDown.Location = new System.Drawing.Point(66, 46);
     146      this.rowNrNumericUpDown.Name = "rowNrNumericUpDown";
     147      this.rowNrNumericUpDown.Size = new System.Drawing.Size(94, 20);
     148      this.rowNrNumericUpDown.TabIndex = 1;
     149      this.rowNrNumericUpDown.ValueChanged += new System.EventHandler(this.rowNrNumericUpDown_ValueChanged);
    120150      //
    121151      // densityGroupBox
     
    124154      this.densityGroupBox.Controls.Add(this.columnsLabel);
    125155      this.densityGroupBox.Controls.Add(this.densityComboBox);
    126       this.densityGroupBox.Controls.Add(this.label1);
     156      this.densityGroupBox.Controls.Add(this.densityLabel);
    127157      this.densityGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
    128158      this.densityGroupBox.Location = new System.Drawing.Point(0, 77);
     
    135165      // columnsNumericUpDown
    136166      //
    137       this.columnsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     167      this.columnsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    138168            | System.Windows.Forms.AnchorStyles.Right)));
    139169      this.columnsNumericUpDown.Location = new System.Drawing.Point(66, 46);
     
    164194      // densityComboBox
    165195      //
    166       this.densityComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     196      this.densityComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    167197            | System.Windows.Forms.AnchorStyles.Right)));
    168198      this.densityComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     
    179209      this.densityComboBox.SelectedIndexChanged += new System.EventHandler(this.densityComboBox_SelectedIndexChanged);
    180210      //
    181       // label1
    182       //
    183       this.label1.AutoSize = true;
    184       this.label1.Location = new System.Drawing.Point(7, 22);
    185       this.label1.Name = "label1";
    186       this.label1.Size = new System.Drawing.Size(45, 13);
    187       this.label1.TabIndex = 0;
    188       this.label1.Text = "Density:";
    189       //
    190       // configSplitContainer
    191       //
    192       this.configSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
    193       this.configSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
    194       this.configSplitContainer.Location = new System.Drawing.Point(0, 0);
    195       this.configSplitContainer.Name = "configSplitContainer";
    196       //
    197       // configSplitContainer.Panel1
    198       //
    199       this.configSplitContainer.Panel1.Controls.Add(this.variableGroupBox);
    200       this.configSplitContainer.Panel1.Controls.Add(this.rowSelectGroupBox);
    201       this.configSplitContainer.Panel1.Controls.Add(this.densityGroupBox);
    202       this.configSplitContainer.Panel1.Controls.Add(this.yAxisConfigGroupBox);
    203       //
    204       // configSplitContainer.Panel2
    205       //
    206       this.configSplitContainer.Panel2.Controls.Add(this.scrollPanel);
    207       this.configSplitContainer.Size = new System.Drawing.Size(715, 648);
    208       this.configSplitContainer.SplitterDistance = 169;
    209       this.configSplitContainer.TabIndex = 0;
    210       this.configSplitContainer.TabStop = false;
    211       //
    212       // variableGroupBox
    213       //
    214       this.variableGroupBox.Controls.Add(this.variableListView);
    215       this.variableGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
    216       this.variableGroupBox.Location = new System.Drawing.Point(0, 225);
    217       this.variableGroupBox.Name = "variableGroupBox";
    218       this.variableGroupBox.Size = new System.Drawing.Size(169, 423);
    219       this.variableGroupBox.TabIndex = 1;
    220       this.variableGroupBox.TabStop = false;
    221       this.variableGroupBox.Text = "Variables";
    222       //
    223       // rowSelectGroupBox
    224       //
    225       this.rowSelectGroupBox.Controls.Add(this.variableValuesModeComboBox);
    226       this.rowSelectGroupBox.Controls.Add(this.rowLabel);
    227       this.rowSelectGroupBox.Controls.Add(this.rowNrNumericUpDown);
    228       this.rowSelectGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
    229       this.rowSelectGroupBox.Location = new System.Drawing.Point(0, 151);
    230       this.rowSelectGroupBox.Name = "rowSelectGroupBox";
    231       this.rowSelectGroupBox.Size = new System.Drawing.Size(169, 74);
    232       this.rowSelectGroupBox.TabIndex = 1;
    233       this.rowSelectGroupBox.TabStop = false;
    234       this.rowSelectGroupBox.Text = "Variable Values";
    235       //
    236       // variableValuesModeComboBox
    237       //
    238       this.variableValuesModeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    239       this.variableValuesModeComboBox.FormattingEnabled = true;
    240       this.variableValuesModeComboBox.Items.AddRange(new object[] {
    241             "Row",
    242             "Mean",
    243             "Median",
    244             "Most Common"});
    245       this.variableValuesModeComboBox.Location = new System.Drawing.Point(10, 19);
    246       this.variableValuesModeComboBox.Name = "variableValuesModeComboBox";
    247       this.variableValuesModeComboBox.Size = new System.Drawing.Size(150, 21);
    248       this.variableValuesModeComboBox.TabIndex = 3;
    249       this.variableValuesModeComboBox.SelectedValueChanged += new System.EventHandler(this.variableValuesComboBox_SelectedValueChanged);
    250       //
    251       // rowLabel
    252       //
    253       this.rowLabel.AutoSize = true;
    254       this.rowLabel.Location = new System.Drawing.Point(7, 48);
    255       this.rowLabel.Name = "rowLabel";
    256       this.rowLabel.Size = new System.Drawing.Size(44, 13);
    257       this.rowLabel.TabIndex = 2;
    258       this.rowLabel.Text = "Row nr.";
    259       //
    260       // rowNrNumericUpDown
    261       //
    262       this.rowNrNumericUpDown.Location = new System.Drawing.Point(66, 46);
    263       this.rowNrNumericUpDown.Name = "rowNrNumericUpDown";
    264       this.rowNrNumericUpDown.Size = new System.Drawing.Size(94, 20);
    265       this.rowNrNumericUpDown.TabIndex = 1;
    266       this.rowNrNumericUpDown.ValueChanged += new System.EventHandler(this.rowNrNumericUpDown_ValueChanged);
     211      // densityLabel
     212      //
     213      this.densityLabel.AutoSize = true;
     214      this.densityLabel.Location = new System.Drawing.Point(7, 22);
     215      this.densityLabel.Name = "densityLabel";
     216      this.densityLabel.Size = new System.Drawing.Size(45, 13);
     217      this.densityLabel.TabIndex = 0;
     218      this.densityLabel.Text = "Density:";
     219      //
     220      // yAxisConfigGroupBox
     221      //
     222      this.yAxisConfigGroupBox.Controls.Add(this.limitView);
     223      this.yAxisConfigGroupBox.Controls.Add(this.automaticYAxisCheckBox);
     224      this.yAxisConfigGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
     225      this.yAxisConfigGroupBox.Location = new System.Drawing.Point(0, 0);
     226      this.yAxisConfigGroupBox.Name = "yAxisConfigGroupBox";
     227      this.yAxisConfigGroupBox.Size = new System.Drawing.Size(169, 77);
     228      this.yAxisConfigGroupBox.TabIndex = 2;
     229      this.yAxisConfigGroupBox.TabStop = false;
     230      this.yAxisConfigGroupBox.Text = "Y-Axis";
     231      //
     232      // limitView
     233      //
     234      this.limitView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     235            | System.Windows.Forms.AnchorStyles.Right)));
     236      this.limitView.Caption = "DoubleLimit View";
     237      this.limitView.Content = null;
     238      this.limitView.Location = new System.Drawing.Point(6, 20);
     239      this.limitView.Name = "limitView";
     240      this.limitView.ReadOnly = false;
     241      this.limitView.Size = new System.Drawing.Size(157, 47);
     242      this.limitView.TabIndex = 1;
     243      //
     244      // automaticYAxisCheckBox
     245      //
     246      this.automaticYAxisCheckBox.AutoSize = true;
     247      this.automaticYAxisCheckBox.Location = new System.Drawing.Point(49, -1);
     248      this.automaticYAxisCheckBox.Name = "automaticYAxisCheckBox";
     249      this.automaticYAxisCheckBox.Size = new System.Drawing.Size(73, 17);
     250      this.automaticYAxisCheckBox.TabIndex = 0;
     251      this.automaticYAxisCheckBox.Text = "Automatic";
     252      this.automaticYAxisCheckBox.UseVisualStyleBackColor = true;
     253      this.automaticYAxisCheckBox.CheckedChanged += new System.EventHandler(this.automaticYAxisCheckBox_CheckedChanged);
    267254      //
    268255      // scrollPanel
     
    275262      this.scrollPanel.TabIndex = 0;
    276263      //
     264      // partialDependencePlotTableLayout
     265      //
     266      this.partialDependencePlotTableLayout.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     267            | System.Windows.Forms.AnchorStyles.Right)));
     268      this.partialDependencePlotTableLayout.AutoSize = true;
     269      this.partialDependencePlotTableLayout.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     270      this.partialDependencePlotTableLayout.ColumnCount = 1;
     271      this.partialDependencePlotTableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     272      this.partialDependencePlotTableLayout.Location = new System.Drawing.Point(0, 0);
     273      this.partialDependencePlotTableLayout.Name = "partialDependencePlotTableLayout";
     274      this.partialDependencePlotTableLayout.RowCount = 1;
     275      this.partialDependencePlotTableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
     276      this.partialDependencePlotTableLayout.Size = new System.Drawing.Size(542, 0);
     277      this.partialDependencePlotTableLayout.TabIndex = 2;
     278      //
    277279      // errorProvider
    278280      //
     
    287289      this.Name = "RegressionSolutionPartialDependencePlotView";
    288290      this.Size = new System.Drawing.Size(715, 648);
    289       this.yAxisConfigGroupBox.ResumeLayout(false);
    290       this.yAxisConfigGroupBox.PerformLayout();
    291       this.densityGroupBox.ResumeLayout(false);
    292       this.densityGroupBox.PerformLayout();
    293       ((System.ComponentModel.ISupportInitialize)(this.columnsNumericUpDown)).EndInit();
    294291      this.configSplitContainer.Panel1.ResumeLayout(false);
    295292      this.configSplitContainer.Panel2.ResumeLayout(false);
     
    300297      this.rowSelectGroupBox.PerformLayout();
    301298      ((System.ComponentModel.ISupportInitialize)(this.rowNrNumericUpDown)).EndInit();
     299      this.densityGroupBox.ResumeLayout(false);
     300      this.densityGroupBox.PerformLayout();
     301      ((System.ComponentModel.ISupportInitialize)(this.columnsNumericUpDown)).EndInit();
     302      this.yAxisConfigGroupBox.ResumeLayout(false);
     303      this.yAxisConfigGroupBox.PerformLayout();
    302304      this.scrollPanel.ResumeLayout(false);
    303305      this.scrollPanel.PerformLayout();
     
    321323    private System.Windows.Forms.Label columnsLabel;
    322324    private System.Windows.Forms.ErrorProvider errorProvider;
    323     private System.Windows.Forms.Label label1;
     325    private System.Windows.Forms.Label densityLabel;
    324326    private System.Windows.Forms.NumericUpDown columnsNumericUpDown;
    325327    private System.Windows.Forms.GroupBox rowSelectGroupBox;
     
    327329    private System.Windows.Forms.Label rowLabel;
    328330    private System.Windows.Forms.NumericUpDown rowNrNumericUpDown;
     331    private System.Windows.Forms.ToolTip toolTip;
    329332  }
    330333}
  • branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionPartialDependencePlotView.cs

    r16516 r16517  
    9797      var problemData = Content.ProblemData;
    9898
     99      if (sharedFixedVariables != null) {
     100        sharedFixedVariables.ItemChanged -= SharedFixedVariables_ItemChanged;
     101        sharedFixedVariables.Reset -= SharedFixedVariables_Reset;
     102      }
     103
    99104      // Init Y-axis range
    100105      double min = double.MaxValue, max = double.MinValue;
     
    120125        Content.ProblemData.Dataset.VariableNames.Where(v => inputvariables.Contains(v)).ToList();
    121126
    122       // ToDo: set default values with the variableValuesMode
    123127      var doubleVariables = allowedInputVariables.Where(problemData.Dataset.VariableHasType<double>);
    124128      var doubleVariableValues = (IEnumerable<IList>)doubleVariables.Select(x => new List<double> {
    125         problemData.Dataset.GetDoubleValues(x, problemData.TrainingIndices).Median()
     129        problemData.Dataset.GetDoubleValue(x, 0)
    126130      });
    127131
    128132      var factorVariables = allowedInputVariables.Where(problemData.Dataset.VariableHasType<string>);
    129133      var factorVariableValues = (IEnumerable<IList>)factorVariables.Select(x => new List<string> {
    130         MostCommon(problemData.Dataset.GetStringValues(x, problemData.TrainingIndices))
     134        problemData.Dataset.GetStringValue(x, 0)
    131135      });
    132136
    133       if (sharedFixedVariables != null) {
    134         sharedFixedVariables.ItemChanged -= SharedFixedVariables_ItemChanged;
    135         sharedFixedVariables.Reset -= SharedFixedVariables_Reset;
    136       }
    137 
    138137      sharedFixedVariables = new ModifiableDataset(doubleVariables.Concat(factorVariables), doubleVariableValues.Concat(factorVariableValues));
    139 
     138      variableValuesModeComboBox.SelectedItem = "Median"; // triggers UpdateVariableValue and changes shardFixedVariables
    140139
    141140      // create controls
     
    645644      return values.GroupBy(x => x).OrderByDescending(g => g.Count()).Select(g => g.Key).First();
    646645    }
     646
     647    // ToolTips cannot be shown longer than 5000ms, only by using ToolTip.Show manually
     648    // See: https://stackoverflow.com/questions/8225807/c-sharp-tooltip-doesnt-display-long-enough
     649    private void variableValuesModeComboBox_MouseHover(object sender, EventArgs e) {
     650      string tooltipText = @"Sets each variable to a specific value:
     651    Row - Selects the value based on a specified row of the dataset.
     652    Mean - Sets the value to the arithmetic mean of the variable.
     653    Median - Sets the value to the median of the variable.
     654    Most Common - Sets the value to the most common value of the variable (first if multiple).
     655
     656Note: For categorical values, the most common value is used when selecting Mean, Median or Most Common.";
     657      toolTip.Show(tooltipText, variableValuesModeComboBox, 30000);
     658      toolTip.Active = true;
     659    }
     660    private void variableValuesModeComboBox_MouseLeave(object sender, EventArgs e) {
     661      toolTip.Active = false;
     662    }
    647663  }
    648664}
Note: See TracChangeset for help on using the changeset viewer.