Changeset 17785
- Timestamp:
- 11/30/20 16:37:14 (4 years ago)
- Location:
- branches/3040_VectorBasedGP
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/ClassificationImportDialog.Designer.cs
r17180 r17785 87 87 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableComboBox); 88 88 this.ProblemDataSettingsGroupBox.Controls.Add(this.UniformDistributionOfClassesCheckbox); 89 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 2 85);89 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 255); 90 90 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.UniformDistributionOfClassesCheckbox, 0); 91 91 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.TargetVariableComboBox, 0); … … 110 110 // 111 111 this.PreviewDatasetMatrix.Location = new System.Drawing.Point(6, 134); 112 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 1 45);112 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 115); 113 113 // 114 114 // PreviewLabel -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisImportDialog.Designer.cs
r17180 r17785 63 63 this.SeparatorComboBox = new System.Windows.Forms.ComboBox(); 64 64 this.CSVSettingsGroupBox = new System.Windows.Forms.GroupBox(); 65 this.VectorSeparatorInfoLabel = new System.Windows.Forms.Label(); 66 this.VectorSeparatorComboBox = new System.Windows.Forms.ComboBox(); 67 this.VectorSeparatorLabel = new System.Windows.Forms.Label(); 65 68 this.EncodingInfoLabel = new System.Windows.Forms.Label(); 66 69 this.EncodingLabel = new System.Windows.Forms.Label(); … … 97 100 this.OkButton.DialogResult = System.Windows.Forms.DialogResult.OK; 98 101 this.OkButton.Enabled = false; 99 this.OkButton.Location = new System.Drawing.Point(303, 422);102 this.OkButton.Location = new System.Drawing.Point(303, 528); 100 103 this.OkButton.Name = "OkButton"; 101 104 this.OkButton.Size = new System.Drawing.Size(75, 23); … … 106 109 // TrainingTestTrackBar 107 110 // 108 this.TrainingTestTrackBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 111 this.TrainingTestTrackBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 109 112 | System.Windows.Forms.AnchorStyles.Right))); 110 113 this.TrainingTestTrackBar.Location = new System.Drawing.Point(6, 43); … … 141 144 this.CancellationButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 142 145 this.CancellationButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 143 this.CancellationButton.Location = new System.Drawing.Point(384, 422);146 this.CancellationButton.Location = new System.Drawing.Point(384, 528); 144 147 this.CancellationButton.Name = "CancellationButton"; 145 148 this.CancellationButton.Size = new System.Drawing.Size(75, 23); … … 250 253 // CSVSettingsGroupBox 251 254 // 252 this.CSVSettingsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 253 | System.Windows.Forms.AnchorStyles.Right))); 255 this.CSVSettingsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 256 | System.Windows.Forms.AnchorStyles.Right))); 257 this.CSVSettingsGroupBox.Controls.Add(this.VectorSeparatorInfoLabel); 258 this.CSVSettingsGroupBox.Controls.Add(this.VectorSeparatorComboBox); 259 this.CSVSettingsGroupBox.Controls.Add(this.VectorSeparatorLabel); 254 260 this.CSVSettingsGroupBox.Controls.Add(this.EncodingInfoLabel); 255 261 this.CSVSettingsGroupBox.Controls.Add(this.EncodingLabel); … … 267 273 this.CSVSettingsGroupBox.Location = new System.Drawing.Point(12, 32); 268 274 this.CSVSettingsGroupBox.Name = "CSVSettingsGroupBox"; 269 this.CSVSettingsGroupBox.Size = new System.Drawing.Size(447, 1 53);275 this.CSVSettingsGroupBox.Size = new System.Drawing.Size(447, 183); 270 276 this.CSVSettingsGroupBox.TabIndex = 16; 271 277 this.CSVSettingsGroupBox.TabStop = false; 272 278 this.CSVSettingsGroupBox.Text = "CSV Settings"; 273 279 // 280 // VectorSeparatorInfoLabel 281 // 282 this.VectorSeparatorInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 283 this.VectorSeparatorInfoLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Information; 284 this.VectorSeparatorInfoLabel.Location = new System.Drawing.Point(417, 100); 285 this.VectorSeparatorInfoLabel.Name = "VectorSeparatorInfoLabel"; 286 this.VectorSeparatorInfoLabel.Size = new System.Drawing.Size(24, 25); 287 this.VectorSeparatorInfoLabel.TabIndex = 30; 288 this.VectorSeparatorInfoLabel.Tag = "Select the decimal separator used to for double values"; 289 this.ToolTip.SetToolTip(this.VectorSeparatorInfoLabel, "If a value contains a Vector Separator it is converted to a Vector column with th" + 290 "e value split on the Vector Separator symbol."); 291 // 292 // VectorSeparatorComboBox 293 // 294 this.VectorSeparatorComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 295 | System.Windows.Forms.AnchorStyles.Right))); 296 this.VectorSeparatorComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 297 this.VectorSeparatorComboBox.Enabled = false; 298 this.VectorSeparatorComboBox.FormattingEnabled = true; 299 this.VectorSeparatorComboBox.Location = new System.Drawing.Point(111, 100); 300 this.VectorSeparatorComboBox.Name = "VectorSeparatorComboBox"; 301 this.VectorSeparatorComboBox.Size = new System.Drawing.Size(300, 21); 302 this.VectorSeparatorComboBox.TabIndex = 29; 303 this.VectorSeparatorComboBox.SelectionChangeCommitted += new System.EventHandler(this.CSVFormatComboBoxSelectionChangeCommitted); 304 // 305 // VectorSeparatorLabel 306 // 307 this.VectorSeparatorLabel.AutoSize = true; 308 this.VectorSeparatorLabel.Location = new System.Drawing.Point(6, 104); 309 this.VectorSeparatorLabel.Name = "VectorSeparatorLabel"; 310 this.VectorSeparatorLabel.Size = new System.Drawing.Size(90, 13); 311 this.VectorSeparatorLabel.TabIndex = 28; 312 this.VectorSeparatorLabel.Text = "Vector Separator:"; 313 // 274 314 // EncodingInfoLabel 275 315 // 276 316 this.EncodingInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 277 317 this.EncodingInfoLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Information; 278 this.EncodingInfoLabel.Location = new System.Drawing.Point(421, 1 02);318 this.EncodingInfoLabel.Location = new System.Drawing.Point(421, 130); 279 319 this.EncodingInfoLabel.Name = "EncodingInfoLabel"; 280 320 this.EncodingInfoLabel.Size = new System.Drawing.Size(16, 16); … … 287 327 // 288 328 this.EncodingLabel.AutoSize = true; 289 this.EncodingLabel.Location = new System.Drawing.Point(6, 1 03);329 this.EncodingLabel.Location = new System.Drawing.Point(6, 130); 290 330 this.EncodingLabel.Name = "EncodingLabel"; 291 331 this.EncodingLabel.Size = new System.Drawing.Size(52, 13); … … 300 340 this.EncodingComboBox.Enabled = false; 301 341 this.EncodingComboBox.FormattingEnabled = true; 302 this.EncodingComboBox.Location = new System.Drawing.Point(111, 1 00);342 this.EncodingComboBox.Location = new System.Drawing.Point(111, 127); 303 343 this.EncodingComboBox.Name = "EncodingComboBox"; 304 344 this.EncodingComboBox.Size = new System.Drawing.Size(300, 21); … … 309 349 // 310 350 this.CheckboxColumnNames.AutoSize = true; 311 this.CheckboxColumnNames.Location = new System.Drawing.Point(9, 1 27);351 this.CheckboxColumnNames.Location = new System.Drawing.Point(9, 154); 312 352 this.CheckboxColumnNames.Name = "CheckboxColumnNames"; 313 353 this.CheckboxColumnNames.Size = new System.Drawing.Size(144, 17); … … 366 406 this.ProblemDataSettingsGroupBox.Controls.Add(this.TrainingTestTrackBar); 367 407 this.ProblemDataSettingsGroupBox.Controls.Add(this.ShuffleDataCheckbox); 368 this.ProblemDataSettingsGroupBox.Location = new System.Drawing.Point(12, 191);408 this.ProblemDataSettingsGroupBox.Location = new System.Drawing.Point(12, 221); 369 409 this.ProblemDataSettingsGroupBox.Name = "ProblemDataSettingsGroupBox"; 370 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 225);410 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 301); 371 411 this.ProblemDataSettingsGroupBox.TabIndex = 17; 372 412 this.ProblemDataSettingsGroupBox.TabStop = false; … … 416 456 this.PreviewDatasetMatrix.ShowRowsAndColumnsTextBox = false; 417 457 this.PreviewDatasetMatrix.ShowStatisticalInformation = false; 418 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 1 11);458 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 187); 419 459 this.PreviewDatasetMatrix.TabIndex = 0; 420 460 // … … 424 464 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 425 465 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 426 this.ClientSize = new System.Drawing.Size(471, 457);466 this.ClientSize = new System.Drawing.Size(471, 563); 427 467 this.Controls.Add(this.ProblemDataSettingsGroupBox); 428 468 this.Controls.Add(this.CSVSettingsGroupBox); … … 480 520 protected System.Windows.Forms.Label EncodingLabel; 481 521 protected System.Windows.Forms.ComboBox EncodingComboBox; 522 protected System.Windows.Forms.Label VectorSeparatorInfoLabel; 523 protected System.Windows.Forms.ComboBox VectorSeparatorComboBox; 524 protected System.Windows.Forms.Label VectorSeparatorLabel; 482 525 } 483 526 } -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisImportDialog.cs
r17414 r17785 29 29 using HeuristicLab.Core.Views; 30 30 using HeuristicLab.Problems.DataAnalysis; 31 using DoubleVector = MathNet.Numerics.LinearAlgebra.Vector<double>; 31 32 32 33 namespace HeuristicLab.Problems.Instances.DataAnalysis.Views { … … 55 56 }; 56 57 58 private static readonly List<KeyValuePair<char?, string>> POSSIBLE_VECTOR_SEPARATORS = 59 new List<KeyValuePair<char?, string>>{ 60 new KeyValuePair<char?, string>(null, "None"), 61 new KeyValuePair<char?, string>(',', ", (Comma)"), 62 new KeyValuePair<char?, string>(';', "; (Semicolon)"), 63 new KeyValuePair<char?, string>(' ', "' ' (Space)"), 64 new KeyValuePair<char?, string>('|', "| (Pipe)") 65 }; 66 57 67 private static readonly List<KeyValuePair<Encoding, string>> POSSIBLE_ENCODINGS = 58 68 new List<KeyValuePair<Encoding, string>> { … … 82 92 NumberFormatInfo = (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, 83 93 DateTimeFormatInfo = (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue, 94 VectorSeparator = (char?)VectorSeparatorComboBox.SelectedValue, 84 95 VariableNamesAvailable = CheckboxColumnNames.Checked, 85 96 Encoding = (Encoding)EncodingComboBox.SelectedValue … … 97 108 DecimalSeparatorComboBox.ValueMember = "Key"; 98 109 DecimalSeparatorComboBox.DisplayMember = "Value"; 110 VectorSeparatorComboBox.DataSource = POSSIBLE_VECTOR_SEPARATORS; 111 VectorSeparatorComboBox.ValueMember = "Key"; 112 VectorSeparatorComboBox.DisplayMember = "Value"; 99 113 DateTimeFormatComboBox.DataSource = POSSIBLE_DATETIME_FORMATS; 100 114 DateTimeFormatComboBox.ValueMember = "Key"; … … 125 139 SeparatorComboBox.Enabled = true; 126 140 DecimalSeparatorComboBox.Enabled = true; 141 VectorSeparatorComboBox.Enabled = true; 127 142 DateTimeFormatComboBox.Enabled = true; 128 143 EncodingComboBox.Enabled = true; … … 132 147 NumberFormat = (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, 133 148 DateTimeFormat = (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue, 134 ColumnSeparator = (char)SeparatorComboBox.SelectedValue 149 ColumnSeparator = (char)SeparatorComboBox.SelectedValue, 150 VectorSeparator = (char?)VectorSeparatorComboBox.SelectedValue 135 151 }; 136 152 CheckboxColumnNames.Checked = csvParser.AreColumnNamesInFirstLine(ProblemTextBox.Text, formatOptions); … … 158 174 NumberFormat = (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, 159 175 DateTimeFormat = (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue, 160 ColumnSeparator = (char)SeparatorComboBox.SelectedValue 176 ColumnSeparator = (char)SeparatorComboBox.SelectedValue, 177 VectorSeparator = (char?)VectorSeparatorComboBox.SelectedValue 161 178 }; 162 179 csvParser.Parse(ProblemTextBox.Text, formatOptions, CheckboxColumnNames.Checked, lineLimit: 500); … … 195 212 } else if (csvParser.Values[i] is List<DateTime>) { 196 213 variableNamesWithType[i] += " (DateTime)"; 214 } else if (csvParser.Values[i] is List<DoubleVector>) { 215 variableNamesWithType[i] += " (Double-Vector)"; 197 216 } else { 198 throw new ArgumentException("The variable values must be of type List<double>, List<string> or List<DateTime>");217 throw new ArgumentException("The variable values must be of type List<double>, List<string>, List<DateTime> or List<DoubleVector>"); 199 218 } 200 219 } -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/HeuristicLab.Problems.Instances.DataAnalysis.Views-3.3.csproj
r17475 r17785 81 81 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 82 82 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 83 <Reference Include="MathNet.Numerics, Version=4.9.0.0, Culture=neutral, PublicKeyToken=cd8b63ad3d691a37, processorArchitecture=MSIL"> 84 <SpecificVersion>False</SpecificVersion> 85 <HintPath>..\..\bin\MathNet.Numerics.dll</HintPath> 86 </Reference> 83 87 <Reference Include="System" /> 84 88 <Reference Include="System.Core" /> -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/Plugin.cs.frame
r17184 r17785 36 36 [PluginDependency("HeuristicLab.Problems.Instances.DataAnalysis", "3.3")] 37 37 [PluginDependency("HeuristicLab.Problems.Instances.Views", "3.3")] 38 [PluginDependency("HeuristicLab.MathNet.Numerics", "4.9.0")] 38 39 public class HeuristicLabProblemsInstancesDataAnalysisViewsPlugin : PluginBase { 39 40 } -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/RegressionImportDialog.Designer.cs
r17180 r17785 66 66 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableLabel); 67 67 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableComboBox); 68 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 194); 68 69 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.PreviewLabel, 0); 69 70 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.ShuffelInfoLabel, 0); … … 78 79 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.ErrorTextBox, 0); 79 80 // 81 // PreviewDatasetMatrix 82 // 83 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 80); 80 84 // TargetVariableComboBox 81 85 // -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/DataAnalysisCSVFormat.cs
r17180 r17785 28 28 public NumberFormatInfo NumberFormatInfo { get; set; } 29 29 public DateTimeFormatInfo DateTimeFormatInfo { get; set; } 30 public char? VectorSeparator { get; set; } 30 31 public bool VariableNamesAvailable { get; set; } 31 32 public Encoding Encoding { get; set; } -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/DataAnalysisInstanceProvider.cs
r17414 r17785 46 46 }; 47 47 var formatOptions = new TableFileFormatOptions { 48 NumberFormat = csvFormat.NumberFormatInfo, DateTimeFormat = csvFormat.DateTimeFormatInfo, ColumnSeparator = csvFormat.Separator 48 NumberFormat = csvFormat.NumberFormatInfo, 49 DateTimeFormat = csvFormat.DateTimeFormatInfo, 50 ColumnSeparator = csvFormat.Separator, 51 VectorSeparator = csvFormat.VectorSeparator 49 52 }; 50 53 csvFileParser.Parse(path, formatOptions, csvFormat.VariableNamesAvailable); -
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/HeuristicLab.Problems.Instances.DataAnalysis-3.3.csproj
r17759 r17785 24 24 <WarningLevel>4</WarningLevel> 25 25 <Prefer32Bit>false</Prefer32Bit> 26 <LangVersion> default</LangVersion>26 <LangVersion>7</LangVersion> 27 27 </PropertyGroup> 28 28 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 34 34 <WarningLevel>4</WarningLevel> 35 35 <Prefer32Bit>false</Prefer32Bit> 36 <LangVersion> default</LangVersion>36 <LangVersion>7</LangVersion> 37 37 </PropertyGroup> 38 38 <PropertyGroup> … … 56 56 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 57 57 <Prefer32Bit>false</Prefer32Bit> 58 <LangVersion> default</LangVersion>58 <LangVersion>7</LangVersion> 59 59 </PropertyGroup> 60 60 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> … … 74 74 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 75 75 <Prefer32Bit>false</Prefer32Bit> 76 <LangVersion> default</LangVersion>76 <LangVersion>7</LangVersion> 77 77 </PropertyGroup> 78 78 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> … … 90 90 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 91 91 <Prefer32Bit>false</Prefer32Bit> 92 <LangVersion> default</LangVersion>92 <LangVersion>7</LangVersion> 93 93 </PropertyGroup> 94 94 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> … … 108 108 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 109 109 <Prefer32Bit>false</Prefer32Bit> 110 <LangVersion> default</LangVersion>110 <LangVersion>7</LangVersion> 111 111 </PropertyGroup> 112 112 <ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.