Changeset 12676
- Timestamp:
- 07/08/15 12:53:55 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/DataPreprocessingImprovements/HeuristicLab.Data.Views merged eligible /branches/HLScript/HeuristicLab.Data.Views merged eligible /stable/HeuristicLab.Data.Views merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.Data.Views 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.Data.Views 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Data.Views 6917-7005 /branches/CloningRefactoring/HeuristicLab.Data.Views 4656-4721 /branches/CodeEditor/HeuristicLab.Data.Views 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.Data.Views 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Data.Views 5815-6180 /branches/DataAnalysis/HeuristicLab.Data.Views 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.Data.Views 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.Data.Views 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Data.Views 5060 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Data.Views 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.Data.Views 10202-10483 /branches/NET40/sources/HeuristicLab.Data.Views 5138-5162 /branches/NSGA-II Changes/HeuristicLab.Data.Views 12033-12122 /branches/ParallelEngine/HeuristicLab.Data.Views 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Data.Views 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Data.Views 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Data.Views 6828 /branches/RuntimeOptimizer/HeuristicLab.Data.Views 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Data.Views 7787-8333 /branches/SlaveShutdown/HeuristicLab.Data.Views 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Data.Views 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.Data.Views 5370-5682 /branches/Trunk/HeuristicLab.Data.Views 6829-6865 /branches/UnloadJobs/HeuristicLab.Data.Views 9168-9215 /branches/VNS/HeuristicLab.Data.Views 5594-5752 /branches/histogram/HeuristicLab.Data.Views 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/sources/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/branches/DataPreprocessingImprovements/HeuristicLab.Data.Views/3.3 (added) merged: 12161,12164-12165,12168,12500,12633
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Data.Views/3.3/HeuristicLab.Data.Views-3.3.csproj
r12602 r12676 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath> $(SolutionDir)\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 105 105 </PropertyGroup> 106 106 <ItemGroup> 107 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 108 <SpecificVersion>False</SpecificVersion> 109 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 110 </Reference> 111 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 112 <SpecificVersion>False</SpecificVersion> 113 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 114 </Reference> 115 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 116 <SpecificVersion>False</SpecificVersion> 117 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 118 </Reference> 119 <Reference Include="HeuristicLab.Core.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 120 <SpecificVersion>False</SpecificVersion> 121 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.Core.Views-3.3.dll</HintPath> 122 </Reference> 123 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 124 <SpecificVersion>False</SpecificVersion> 125 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 126 </Reference> 127 <Reference Include="HeuristicLab.MainForm-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 128 <SpecificVersion>False</SpecificVersion> 129 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.MainForm-3.3.dll</HintPath> 130 </Reference> 131 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 132 <SpecificVersion>False</SpecificVersion> 133 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.MainForm.WindowsForms-3.3.dll</HintPath> 134 </Reference> 135 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 136 <SpecificVersion>False</SpecificVersion> 137 <HintPath>..\..\..\..\..\..\HL Preprocessing\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 138 </Reference> 107 139 <Reference Include="System" /> 108 140 <Reference Include="System.Core"> … … 230 262 <None Include="HeuristicLab.snk" /> 231 263 <None Include="Properties\AssemblyInfo.cs.frame" /> 232 </ItemGroup>233 <ItemGroup>234 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">235 <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project>236 <Name>HeuristicLab.Common.Resources-3.3</Name>237 <Private>False</Private>238 </ProjectReference>239 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">240 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>241 <Name>HeuristicLab.Common-3.3</Name>242 <Private>False</Private>243 </ProjectReference>244 <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj">245 <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project>246 <Name>HeuristicLab.Core.Views-3.3</Name>247 <Private>False</Private>248 </ProjectReference>249 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">250 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>251 <Name>HeuristicLab.Core-3.3</Name>252 <Private>False</Private>253 </ProjectReference>254 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">255 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>256 <Name>HeuristicLab.Data-3.3</Name>257 <Private>False</Private>258 </ProjectReference>259 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.3\HeuristicLab.MainForm.WindowsForms-3.3.csproj">260 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project>261 <Name>HeuristicLab.MainForm.WindowsForms-3.3</Name>262 <Private>False</Private>263 </ProjectReference>264 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.3\HeuristicLab.MainForm-3.3.csproj">265 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project>266 <Name>HeuristicLab.MainForm-3.3</Name>267 <Private>False</Private>268 </ProjectReference>269 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">270 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>271 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>272 <Private>False</Private>273 </ProjectReference>274 264 </ItemGroup> 275 265 <ItemGroup> -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r12151 r12676 109 109 dataGridView.Columns.Clear(); 110 110 virtualRowIndices = new int[0]; 111 } else 111 } else if (!dataGridView.IsCurrentCellInEditMode) { 112 112 UpdateData(); 113 } 113 114 } 114 115 … … 295 296 } 296 297 297 pr ivatevoid dataGridView_KeyDown(object sender, KeyEventArgs e) {298 protected virtual void dataGridView_KeyDown(object sender, KeyEventArgs e) { 298 299 if (!ReadOnly && e.Control && e.KeyCode == Keys.V) 299 300 PasteValuesToDataGridView(); … … 398 399 } 399 400 400 pr ivatevoid dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) {401 protected virtual void dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { 401 402 if (Content != null) { 402 403 if (e.Button == MouseButtons.Left && Content.SortableView) { 403 bool addToSortedIndices = (Control.ModifierKeys & Keys.Control) == Keys.Control; 404 SortOrder newSortOrder = SortOrder.Ascending; 405 if (sortedColumnIndices.Any(x => x.Key == e.ColumnIndex)) { 406 SortOrder oldSortOrder = sortedColumnIndices.Where(x => x.Key == e.ColumnIndex).First().Value; 407 int enumLength = Enum.GetValues(typeof(SortOrder)).Length; 408 newSortOrder = oldSortOrder = (SortOrder)Enum.Parse(typeof(SortOrder), ((((int)oldSortOrder) + 1) % enumLength).ToString()); 409 } 410 411 if (!addToSortedIndices) 412 sortedColumnIndices.Clear(); 413 414 if (sortedColumnIndices.Any(x => x.Key == e.ColumnIndex)) { 415 int sortedIndex = sortedColumnIndices.FindIndex(x => x.Key == e.ColumnIndex); 416 if (newSortOrder != SortOrder.None) 417 sortedColumnIndices[sortedIndex] = new KeyValuePair<int, SortOrder>(e.ColumnIndex, newSortOrder); 418 else 419 sortedColumnIndices.RemoveAt(sortedIndex); 420 } else 421 if (newSortOrder != SortOrder.None) 422 sortedColumnIndices.Add(new KeyValuePair<int, SortOrder>(e.ColumnIndex, newSortOrder)); 423 Sort(); 404 SortColumn(e.ColumnIndex); 424 405 } 425 406 } … … 438 419 dataGridView.Invalidate(); 439 420 } 421 422 protected virtual void SortColumn(int columnIndex) { 423 bool addToSortedIndices = (Control.ModifierKeys & Keys.Control) == Keys.Control; 424 SortOrder newSortOrder = SortOrder.Ascending; 425 if (sortedColumnIndices.Any(x => x.Key == columnIndex)) { 426 SortOrder oldSortOrder = sortedColumnIndices.Where(x => x.Key == columnIndex).First().Value; 427 int enumLength = Enum.GetValues(typeof(SortOrder)).Length; 428 newSortOrder = oldSortOrder = (SortOrder)Enum.Parse(typeof(SortOrder), ((((int)oldSortOrder) + 1) % enumLength).ToString()); 429 } 430 431 if (!addToSortedIndices) 432 sortedColumnIndices.Clear(); 433 434 if (sortedColumnIndices.Any(x => x.Key == columnIndex)) { 435 int sortedIndex = sortedColumnIndices.FindIndex(x => x.Key == columnIndex); 436 if (newSortOrder != SortOrder.None) 437 sortedColumnIndices[sortedIndex] = new KeyValuePair<int, SortOrder>(columnIndex, newSortOrder); 438 else 439 sortedColumnIndices.RemoveAt(sortedIndex); 440 } else 441 if (newSortOrder != SortOrder.None) 442 sortedColumnIndices.Add(new KeyValuePair<int, SortOrder>(columnIndex, newSortOrder)); 443 Sort(); 444 } 445 440 446 protected virtual int[] Sort(IEnumerable<KeyValuePair<int, SortOrder>> sortedColumns) { 441 447 int[] newSortedIndex = Enumerable.Range(0, Content.Rows).ToArray(); … … 510 516 } 511 517 512 pr ivatevoid dataGridView_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e) {518 protected virtual void dataGridView_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e) { 513 519 if (Content == null) return; 514 520 if (e.Button == MouseButtons.Right && Content.ColumnNames.Count() != 0) … … 543 549 544 550 protected virtual void dataGridView_SelectionChanged(object sender, EventArgs e) { 545 string stringFormat = "{0,20:0.0000}";546 551 statisticsTextBox.Text = string.Empty; 547 552 if (dataGridView.SelectedCells.Count > 1) { … … 553 558 } 554 559 if (selectedValues.Count > 1) { 555 StringBuilder labelText = new StringBuilder(); 556 labelText.Append("Count: " + string.Format(stringFormat, selectedValues.Count) + " "); 557 labelText.Append("Sum: " + string.Format(stringFormat, selectedValues.Sum()) + " "); 558 labelText.Append("Min: " + string.Format(stringFormat, selectedValues.Min()) + " "); 559 labelText.Append("Max: " + string.Format(stringFormat, selectedValues.Max()) + " "); 560 labelText.Append("Average: " + string.Format(stringFormat, selectedValues.Average()) + " "); 561 labelText.Append("Standard Deviation: " + string.Format(stringFormat, selectedValues.StandardDeviation()) + " "); 562 563 statisticsTextBox.Text = labelText.ToString(); 564 } 565 } 560 statisticsTextBox.Text = CreateStatisticsText(selectedValues); 561 } 562 } 563 } 564 565 protected virtual string CreateStatisticsText(ICollection<double> values) { 566 string stringFormat = "{0,20:0.0000}"; 567 int overallCount = values.Count; 568 values = values.Where(x => !double.IsNaN(x)).ToList(); 569 if (!values.Any()) { 570 return ""; 571 } 572 StringBuilder statisticsText = new StringBuilder(); 573 statisticsText.Append("Count: " + values.Count + " "); 574 statisticsText.Append("Sum: " + string.Format(stringFormat, values.Sum()) + " "); 575 statisticsText.Append("Min: " + string.Format(stringFormat, values.Min()) + " "); 576 statisticsText.Append("Max: " + string.Format(stringFormat, values.Max()) + " "); 577 statisticsText.Append("Average: " + string.Format(stringFormat, values.Average()) + " "); 578 statisticsText.Append("Standard Deviation: " + string.Format(stringFormat, values.StandardDeviation()) + " "); 579 if (overallCount > 0) 580 statisticsText.Append("Missing Values: " + string.Format(stringFormat, ((overallCount - values.Count) / (double)overallCount) * 100) + "% "); 581 return statisticsText.ToString(); 566 582 } 567 583 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/DataPreprocessingImprovements/HeuristicLab.DataPreprocessing.Views merged eligible /stable/HeuristicLab.DataPreprocessing.Views merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.DataPreprocessing.Views 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.DataPreprocessing.Views 5516-5520 /branches/Benchmarking/sources/HeuristicLab.DataPreprocessing.Views 6917-7005 /branches/CloningRefactoring/HeuristicLab.DataPreprocessing.Views 4656-4721 /branches/CodeEditor/HeuristicLab.DataPreprocessing.Views 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.DataPreprocessing.Views 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.DataPreprocessing.Views 5815-6180 /branches/DataAnalysis/HeuristicLab.DataPreprocessing.Views 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.DataPreprocessing.Views 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.DataPreprocessing.Views 5060 /branches/HLScript/HeuristicLab.DataPreprocessing.Views 10331-10358 /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.DataPreprocessing.Views 11570-12508 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.DataPreprocessing.Views 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.DataPreprocessing.Views 10202-10483 /branches/NET40/sources/HeuristicLab.DataPreprocessing.Views 5138-5162 /branches/NSGA-II Changes/HeuristicLab.DataPreprocessing.Views 12033-12122 /branches/ParallelEngine/HeuristicLab.DataPreprocessing.Views 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.DataPreprocessing.Views 7568-7810 /branches/QAPAlgorithms/HeuristicLab.DataPreprocessing.Views 6350-6627 /branches/Restructure trunk solution/HeuristicLab.DataPreprocessing.Views 6828 /branches/RuntimeOptimizer/HeuristicLab.DataPreprocessing.Views 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.DataPreprocessing.Views 7787-8333 /branches/SlaveShutdown/HeuristicLab.DataPreprocessing.Views 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.DataPreprocessing.Views 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.DataPreprocessing.Views 5370-5682 /branches/Trunk/HeuristicLab.DataPreprocessing.Views 6829-6865 /branches/UnloadJobs/HeuristicLab.DataPreprocessing.Views 9168-9215 /branches/VNS/HeuristicLab.DataPreprocessing.Views 5594-5752 /branches/histogram/HeuristicLab.DataPreprocessing.Views 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r12012 r12676 61 61 dataGridView.KeyDown += dataGridView_KeyDown; 62 62 dataGridView.MouseUp += dataGridView_MouseUp; 63 dataGridView.ColumnHeaderMouseClick += dataGridView_ColumnHeaderMouseClick;64 63 contextMenuCell.Items.Add(ShowHideColumns); 65 64 _highlightedCellsBackground = new Dictionary<int, IList<int>>(); … … 127 126 128 127 string errorMessage; 129 if ( Content != null) {128 if (!String.IsNullOrEmpty(e.FormattedValue.ToString())) { 130 129 if (dataGridView.IsCurrentCellInEditMode && Content.FilterLogic.IsFiltered) { 131 130 errorMessage = "A filter is active, you cannot modify data. Press ESC to exit edit mode."; … … 164 163 } 165 164 166 private void dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { 165 protected override void dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { 166 if (Content != null) { 167 if (e.Button == System.Windows.Forms.MouseButtons.Left) { 168 dataGridView.Focus(); 169 dataGridView.ClearSelection(); 170 dataGridView.SelectionChanged -= dataGridView_SelectionChanged; 171 for (int i = 0; i < dataGridView.RowCount; i++) { 172 if (i + 1 == dataGridView.RowCount) 173 dataGridView.SelectionChanged += dataGridView_SelectionChanged; 174 dataGridView[e.ColumnIndex, i].Selected = true; 175 } 176 } else if (Content.SortableView) { 177 SortColumn(e.ColumnIndex); 178 } 179 } 167 180 searchIterator = null; 168 181 } … … 437 450 private void dataGridView_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { 438 451 if (Content == null) return; 439 if (e.Button == System.Windows.Forms.MouseButtons.Right ) {452 if (e.Button == System.Windows.Forms.MouseButtons.Right && !(e.ColumnIndex != -1 && e.RowIndex == -1)) { 440 453 if (e.ColumnIndex == -1 || e.RowIndex == -1) { 441 454 replaceValueOverColumnToolStripMenuItem.Visible = false; … … 474 487 private void dataGridView_KeyDown(object sender, KeyEventArgs e) { 475 488 var selectedRows = dataGridView.SelectedRows; 476 if (e.KeyCode == Keys.Delete && selectedRows.Count > 0) { 477 List<int> rows = new List<int>(); 478 for (int i = 0; i < selectedRows.Count; ++i) { 479 rows.Add(selectedRows[i].Index); 480 } 481 Content.DeleteRow(rows); 482 } else if (e.Control && e.KeyCode == Keys.F) { 483 CreateFindAndReplaceDialog(); 484 findAndReplaceDialog.ActivateSearch(); 485 } else if (e.Control && e.KeyCode == Keys.R) { 486 CreateFindAndReplaceDialog(); 487 findAndReplaceDialog.ActivateReplace(); 489 var selectedCells = dataGridView.SelectedCells; 490 if (!Content.FilterLogic.IsFiltered) { //data is in read only mode.... 491 if (e.KeyCode == Keys.Delete && selectedCells.Count == Content.Rows && selectedCells.Count > 0) { 492 Content.DeleteColumn(selectedCells[0].ColumnIndex); 493 } else if (e.KeyCode == Keys.Delete && selectedRows.Count > 0) { 494 List<int> rows = new List<int>(); 495 for (int i = 0; i < selectedRows.Count; ++i) { 496 int index = (sortedColumnIndices.Count != 0) ? (Convert.ToInt32(selectedRows[i].HeaderCell.Value) - 1) : 497 selectedRows[i].Index; 498 rows.Add(index); 499 } 500 Content.DeleteRows(rows); 501 } else if (e.Control && e.KeyCode == Keys.F) { 502 CreateFindAndReplaceDialog(); 503 findAndReplaceDialog.ActivateSearch(); 504 } else if (e.Control && e.KeyCode == Keys.R) { 505 CreateFindAndReplaceDialog(); 506 findAndReplaceDialog.ActivateReplace(); 507 } 488 508 } 489 509 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs
r12012 r12676 46 46 if (Content != null) { 47 47 var data = Content.Data; 48 var searchLogic = new SearchLogic(data); 48 var filterLogic = new FilterLogic(data); 49 var searchLogic = new SearchLogic(data, filterLogic); 49 50 var statisticsLogic = new StatisticsLogic(data, searchLogic); 50 51 var manipulationLogic = new ManipulationLogic(data, searchLogic, statisticsLogic); 51 var filterLogic = new FilterLogic(data);52 52 53 53 var viewShortcuts = new ItemList<IViewShortcut> { -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessorStarter.cs
r12012 r12676 44 44 IContentView contentView = control as IContentView; 45 45 if (contentView != null) { 46 algorithm = contentView.Content as IAlgorithm; 47 problem = contentView.Content as IDataAnalysisProblem; 46 var newAlgorithm = contentView.Content as IAlgorithm; 47 if (newAlgorithm != null) 48 algorithm = newAlgorithm; 49 var newProblem = contentView.Content as IDataAnalysisProblem; 50 if (newProblem != null) 51 problem = newProblem; 48 52 } 49 53 control = control.Parent; -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/HeuristicLab.DataPreprocessing.Views-3.4.csproj
r11724 r12676 18 18 <DebugType>full</DebugType> 19 19 <Optimize>false</Optimize> 20 <OutputPath> $(SolutionDir)\bin\</OutputPath>20 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 21 21 <DefineConstants>DEBUG;TRACE</DefineConstants> 22 22 <ErrorReport>prompt</ErrorReport> … … 28 28 <DebugType>pdbonly</DebugType> 29 29 <Optimize>true</Optimize> 30 <OutputPath> $(SolutionDir)\bin\</OutputPath>30 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 31 31 <DefineConstants>TRACE</DefineConstants> 32 32 <ErrorReport>prompt</ErrorReport> … … 88 88 </PropertyGroup> 89 89 <ItemGroup> 90 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 91 <SpecificVersion>False</SpecificVersion> 92 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 93 </Reference> 94 <Reference Include="HeuristicLab.Analysis.Views-3.3"> 95 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis.Views-3.3.dll</HintPath> 96 </Reference> 97 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 98 <SpecificVersion>False</SpecificVersion> 99 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 100 </Reference> 101 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 102 <SpecificVersion>False</SpecificVersion> 103 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 104 </Reference> 105 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 106 <SpecificVersion>False</SpecificVersion> 107 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 108 </Reference> 109 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 110 <SpecificVersion>False</SpecificVersion> 111 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 112 </Reference> 113 <Reference Include="HeuristicLab.Core.Views-3.3"> 114 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core.Views-3.3.dll</HintPath> 115 </Reference> 116 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 117 <SpecificVersion>False</SpecificVersion> 118 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 119 </Reference> 120 <Reference Include="HeuristicLab.Data.Views-3.3"> 121 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data.Views-3.3.dll</HintPath> 122 </Reference> 123 <Reference Include="HeuristicLab.MainForm-3.3"> 124 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.MainForm-3.3.dll</HintPath> 125 </Reference> 126 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3"> 127 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.MainForm.WindowsForms-3.3.dll</HintPath> 128 </Reference> 129 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 130 <SpecificVersion>False</SpecificVersion> 131 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 132 </Reference> 133 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 134 <SpecificVersion>False</SpecificVersion> 135 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 136 </Reference> 137 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 138 <SpecificVersion>False</SpecificVersion> 139 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis-3.4.dll</HintPath> 140 </Reference> 141 <Reference Include="HeuristicLab.Problems.DataAnalysis.Views-3.4"> 142 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Views-3.4.dll</HintPath> 143 </Reference> 144 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3"> 145 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Visualization.ChartControlsExtensions-3.3.dll</HintPath> 146 </Reference> 90 147 <Reference Include="System" /> 91 148 <Reference Include="System.Core" /> … … 235 292 </ItemGroup> 236 293 <ItemGroup> 237 <ProjectReference Include="..\..\HeuristicLab.Analysis.Views\3.3\HeuristicLab.Analysis.Views-3.3.csproj"> 238 <Project>{76945d76-ca61-4147-9dc2-0acdcddf87f9}</Project> 239 <Name>HeuristicLab.Analysis.Views-3.3</Name> 240 <Private>False</Private> 241 </ProjectReference> 242 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj"> 243 <Project>{887425b4-4348-49ed-a457-b7d2c26ddbf9}</Project> 244 <Name>HeuristicLab.Analysis-3.3</Name> 245 <Private>False</Private> 246 </ProjectReference> 247 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 248 <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project> 249 <Name>HeuristicLab.Collections-3.3</Name> 250 </ProjectReference> 251 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj"> 252 <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project> 253 <Name>HeuristicLab.Common.Resources-3.3</Name> 254 <Private>False</Private> 255 </ProjectReference> 256 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 257 <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project> 258 <Name>HeuristicLab.Common-3.3</Name> 259 <Private>False</Private> 260 </ProjectReference> 261 <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj"> 262 <Project>{e226881d-315f-423d-b419-a766fe0d8685}</Project> 263 <Name>HeuristicLab.Core.Views-3.3</Name> 264 <Private>False</Private> 265 </ProjectReference> 266 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 267 <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project> 268 <Name>HeuristicLab.Core-3.3</Name> 269 <Private>False</Private> 270 </ProjectReference> 271 <ProjectReference Include="..\..\HeuristicLab.Data.Views\3.3\HeuristicLab.Data.Views-3.3.csproj"> 272 <Project>{72104a0b-90e7-42f3-9abe-9bbbadd4b943}</Project> 273 <Name>HeuristicLab.Data.Views-3.3</Name> 274 <Private>False</Private> 275 </ProjectReference> 276 <ProjectReference Include="..\..\HeuristicLab.DataPreprocessing\3.4\HeuristicLab.DataPreprocessing-3.4.csproj"> 294 <ProjectReference Include="..\..\..\..\trunk\sources\HeuristicLab.DataPreprocessing\3.4\HeuristicLab.DataPreprocessing-3.4.csproj"> 277 295 <Project>{3b90f866-70f8-43ef-a541-51819d255b7b}</Project> 278 296 <Name>HeuristicLab.DataPreprocessing-3.4</Name> 279 <Private>False</Private>280 </ProjectReference>281 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">282 <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>283 <Name>HeuristicLab.Data-3.3</Name>284 <Private>False</Private>285 </ProjectReference>286 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.3\HeuristicLab.MainForm.WindowsForms-3.3.csproj">287 <Project>{ab687bbe-1bfe-476b-906d-44237135431d}</Project>288 <Name>HeuristicLab.MainForm.WindowsForms-3.3</Name>289 <Private>False</Private>290 </ProjectReference>291 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.3\HeuristicLab.MainForm-3.3.csproj">292 <Project>{3bd61258-31da-4b09-89c0-4f71fef5f05a}</Project>293 <Name>HeuristicLab.MainForm-3.3</Name>294 <Private>False</Private>295 </ProjectReference>296 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">297 <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>298 <Name>HeuristicLab.Optimization-3.3</Name>299 <Private>False</Private>300 </ProjectReference>301 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">302 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>303 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>304 <Private>False</Private>305 </ProjectReference>306 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Views\3.4\HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj">307 <Project>{3e9e8944-44ff-40bb-a622-3a4a7dd0f198}</Project>308 <Name>HeuristicLab.Problems.DataAnalysis.Views-3.4</Name>309 <Private>False</Private>310 </ProjectReference>311 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj">312 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project>313 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name>314 <Private>False</Private>315 </ProjectReference>316 <ProjectReference Include="..\..\HeuristicLab.Visualization.ChartControlsExtensions\3.3\HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj">317 <Project>{315bda09-3f4f-49b3-9790-b37cfc1c5750}</Project>318 <Name>HeuristicLab.Visualization.ChartControlsExtensions-3.3</Name>319 297 <Private>False</Private> 320 298 </ProjectReference> -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.Designer.cs
r11043 r12676 25 25 private void InitializeComponent() { 26 26 this.optionsBox = new System.Windows.Forms.GroupBox(); 27 this.displayDetailsCheckBox = new System.Windows.Forms.CheckBox(); 27 28 this.label1 = new System.Windows.Forms.Label(); 28 29 this.classifierComboBox = new System.Windows.Forms.ComboBox(); … … 33 34 // 34 35 this.optionsBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 36 this.optionsBox.Controls.Add(this.displayDetailsCheckBox); 35 37 this.optionsBox.Controls.Add(this.label1); 36 38 this.optionsBox.Controls.Add(this.classifierComboBox); 37 this.optionsBox.Location = new System.Drawing.Point(4, 263); 39 this.optionsBox.Location = new System.Drawing.Point(5, 324); 40 this.optionsBox.Margin = new System.Windows.Forms.Padding(4); 38 41 this.optionsBox.Name = "optionsBox"; 39 this.optionsBox.Size = new System.Drawing.Size(152, 134); 42 this.optionsBox.Padding = new System.Windows.Forms.Padding(4); 43 this.optionsBox.Size = new System.Drawing.Size(203, 165); 40 44 this.optionsBox.TabIndex = 7; 41 45 this.optionsBox.TabStop = false; 42 46 this.optionsBox.Text = "Options"; 43 47 // 48 // displayDetailsCheckBox 49 // 50 this.displayDetailsCheckBox.AutoSize = true; 51 this.displayDetailsCheckBox.Location = new System.Drawing.Point(7, 71); 52 this.displayDetailsCheckBox.Name = "displayDetailsCheckBox"; 53 this.displayDetailsCheckBox.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 54 this.displayDetailsCheckBox.Size = new System.Drawing.Size(153, 21); 55 this.displayDetailsCheckBox.TabIndex = 3; 56 this.displayDetailsCheckBox.Text = "Display value count"; 57 this.displayDetailsCheckBox.UseVisualStyleBackColor = true; 58 this.displayDetailsCheckBox.CheckedChanged += new System.EventHandler(this.displayDetailsCheckBox_CheckedChanged); 59 // 44 60 // label1 45 61 // 46 62 this.label1.AutoSize = true; 47 this.label1.Location = new System.Drawing.Point(6, 26); 63 this.label1.Location = new System.Drawing.Point(4, 19); 64 this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 48 65 this.label1.Name = "label1"; 49 this.label1.Size = new System.Drawing.Size( 91, 13);66 this.label1.Size = new System.Drawing.Size(108, 17); 50 67 this.label1.TabIndex = 2; 51 this.label1.Text = " Classifiervariable:";68 this.label1.Text = "Target variable:"; 52 69 // 53 70 // classifierComboBox … … 55 72 this.classifierComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 56 73 this.classifierComboBox.FormattingEnabled = true; 57 this.classifierComboBox.Location = new System.Drawing.Point(9, 52); 74 this.classifierComboBox.Location = new System.Drawing.Point(7, 40); 75 this.classifierComboBox.Margin = new System.Windows.Forms.Padding(4); 58 76 this.classifierComboBox.Name = "classifierComboBox"; 59 this.classifierComboBox.Size = new System.Drawing.Size(1 21, 21);77 this.classifierComboBox.Size = new System.Drawing.Size(160, 24); 60 78 this.classifierComboBox.TabIndex = 1; 61 79 this.classifierComboBox.SelectedIndexChanged += new System.EventHandler(this.classifierComboBox_SelectedIndexChanged); … … 63 81 // HistogramView 64 82 // 65 this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F);83 this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 66 84 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 67 85 this.Controls.Add(this.optionsBox); 86 this.Margin = new System.Windows.Forms.Padding(5); 68 87 this.Name = "HistogramView"; 69 88 this.Controls.SetChildIndex(this.optionsBox, 0); … … 79 98 private System.Windows.Forms.ComboBox classifierComboBox; 80 99 private System.Windows.Forms.Label label1; 100 private System.Windows.Forms.CheckBox displayDetailsCheckBox; 81 101 82 102 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
r12012 r12676 70 70 71 71 Content.ClassifierVariableIndex = classifierComboBox.SelectedIndex; 72 73 GenerateChart(); 72 if (Content.IsDetailedChartViewEnabled != IsDetailedChartViewEnabled) { 73 displayDetailsCheckBox.Checked = Content.IsDetailedChartViewEnabled; 74 } else { 75 GenerateChart(); 76 } 77 } 78 private void displayDetailsCheckBox_CheckedChanged(object sender, EventArgs e) { 79 bool isChecked = displayDetailsCheckBox.Checked; 80 if (IsDetailedChartViewEnabled != isChecked) { 81 IsDetailedChartViewEnabled = isChecked; 82 Content.IsDetailedChartViewEnabled = isChecked; 83 GenerateChart(); 84 } 74 85 } 75 86 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.Designer.cs
r11381 r12676 49 49 this.label10 = new System.Windows.Forms.Label(); 50 50 this.tabDataShuffle = new System.Windows.Forms.TabPage(); 51 this.shuffleSeparatelyCheckbox = new System.Windows.Forms.CheckBox(); 51 52 this.lblShuffleProperties = new System.Windows.Forms.Label(); 52 53 this.grpBoxPreview = new System.Windows.Forms.GroupBox(); … … 66 67 this.lblPreviewShuffle = new System.Windows.Forms.Label(); 67 68 this.label9 = new System.Windows.Forms.Label(); 68 this.shuffleSeparatelyCheckbox = new System.Windows.Forms.CheckBox(); 69 this.panel1 = new System.Windows.Forms.Panel(); 70 this.panel2 = new System.Windows.Forms.Panel(); 69 71 this.grpBoxData.SuspendLayout(); 70 72 this.tabsData.SuspendLayout(); … … 83 85 this.tabPreviewReplaceMissingValues.SuspendLayout(); 84 86 this.tabPreviewShuffle.SuspendLayout(); 87 this.panel1.SuspendLayout(); 88 this.panel2.SuspendLayout(); 85 89 this.SuspendLayout(); 86 90 // … … 90 94 | System.Windows.Forms.AnchorStyles.Right))); 91 95 this.lstMethods.FormattingEnabled = true; 96 this.lstMethods.ItemHeight = 16; 92 97 this.lstMethods.Items.AddRange(new object[] { 93 98 "Delete Columns with insufficient Information", … … 96 101 "Replace Missing Values", 97 102 "Shuffle Data"}); 98 this.lstMethods.Location = new System.Drawing.Point(3, 3); 103 this.lstMethods.Location = new System.Drawing.Point(4, 4); 104 this.lstMethods.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 99 105 this.lstMethods.Name = "lstMethods"; 100 this.lstMethods.Size = new System.Drawing.Size( 733, 95);106 this.lstMethods.Size = new System.Drawing.Size(976, 116); 101 107 this.lstMethods.Sorted = true; 102 108 this.lstMethods.TabIndex = 0; … … 107 113 this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 108 114 this.btnApply.Enabled = false; 109 this.btnApply.Location = new System.Drawing.Point(603, 500); 115 this.btnApply.Location = new System.Drawing.Point(804, 615); 116 this.btnApply.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 110 117 this.btnApply.Name = "btnApply"; 111 this.btnApply.Size = new System.Drawing.Size(1 29, 23);118 this.btnApply.Size = new System.Drawing.Size(172, 28); 112 119 this.btnApply.TabIndex = 2; 113 120 this.btnApply.Text = "Apply Manipulation"; … … 120 127 | System.Windows.Forms.AnchorStyles.Right))); 121 128 this.grpBoxData.Controls.Add(this.tabsData); 122 this.grpBoxData.Location = new System.Drawing.Point(4, 105); 129 this.grpBoxData.Location = new System.Drawing.Point(5, 129); 130 this.grpBoxData.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 123 131 this.grpBoxData.Name = "grpBoxData"; 124 this.grpBoxData.Size = new System.Drawing.Size(732, 189); 132 this.grpBoxData.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 133 this.grpBoxData.Size = new System.Drawing.Size(976, 233); 125 134 this.grpBoxData.TabIndex = 3; 126 135 this.grpBoxData.TabStop = false; … … 138 147 this.tabsData.Controls.Add(this.tabDataShuffle); 139 148 this.tabsData.ItemSize = new System.Drawing.Size(58, 18); 140 this.tabsData.Location = new System.Drawing.Point(6, 19); 149 this.tabsData.Location = new System.Drawing.Point(8, 23); 150 this.tabsData.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 141 151 this.tabsData.Name = "tabsData"; 142 152 this.tabsData.SelectedIndex = 0; 143 this.tabsData.Size = new System.Drawing.Size( 719, 164);153 this.tabsData.Size = new System.Drawing.Size(959, 202); 144 154 this.tabsData.TabIndex = 3; 145 155 // … … 148 158 this.tabPage1.Controls.Add(this.label7); 149 159 this.tabPage1.Location = new System.Drawing.Point(4, 22); 160 this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 150 161 this.tabPage1.Name = "tabPage1"; 151 this.tabPage1.Padding = new System.Windows.Forms.Padding( 3);152 this.tabPage1.Size = new System.Drawing.Size( 711, 138);162 this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 163 this.tabPage1.Size = new System.Drawing.Size(951, 176); 153 164 this.tabPage1.TabIndex = 5; 154 165 this.tabPage1.Text = "tabDataInactive"; … … 159 170 this.label7.AutoSize = true; 160 171 this.label7.Enabled = false; 161 this.label7.Location = new System.Drawing.Point(3, 3); 172 this.label7.Location = new System.Drawing.Point(4, 4); 173 this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 162 174 this.label7.Name = "label7"; 163 this.label7.Size = new System.Drawing.Size( 259, 13);175 this.label7.Size = new System.Drawing.Size(345, 17); 164 176 this.label7.TabIndex = 1; 165 177 this.label7.Text = "Please select one of the manipulation methods above"; … … 171 183 this.tabDataDeleteColumnsInformation.Controls.Add(this.label1); 172 184 this.tabDataDeleteColumnsInformation.Location = new System.Drawing.Point(4, 22); 185 this.tabDataDeleteColumnsInformation.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 173 186 this.tabDataDeleteColumnsInformation.Name = "tabDataDeleteColumnsInformation"; 174 this.tabDataDeleteColumnsInformation.Padding = new System.Windows.Forms.Padding( 3);175 this.tabDataDeleteColumnsInformation.Size = new System.Drawing.Size( 711, 138);187 this.tabDataDeleteColumnsInformation.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 188 this.tabDataDeleteColumnsInformation.Size = new System.Drawing.Size(951, 176); 176 189 this.tabDataDeleteColumnsInformation.TabIndex = 0; 177 190 this.tabDataDeleteColumnsInformation.Text = "del columns info"; … … 181 194 // 182 195 this.label2.AutoSize = true; 183 this.label2.Location = new System.Drawing.Point(204, 3); 196 this.label2.Location = new System.Drawing.Point(272, 4); 197 this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 184 198 this.label2.Name = "label2"; 185 this.label2.Size = new System.Drawing.Size( 89, 13);199 this.label2.Size = new System.Drawing.Size(120, 17); 186 200 this.label2.TabIndex = 5; 187 201 this.label2.Text = "% missing values."; … … 189 203 // txtDeleteColumnsInfo 190 204 // 191 this.txtDeleteColumnsInfo.Location = new System.Drawing.Point(164, 0); 205 this.txtDeleteColumnsInfo.Location = new System.Drawing.Point(219, 0); 206 this.txtDeleteColumnsInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 192 207 this.txtDeleteColumnsInfo.Name = "txtDeleteColumnsInfo"; 193 this.txtDeleteColumnsInfo.Size = new System.Drawing.Size( 34, 20);208 this.txtDeleteColumnsInfo.Size = new System.Drawing.Size(44, 22); 194 209 this.txtDeleteColumnsInfo.TabIndex = 4; 195 210 this.txtDeleteColumnsInfo.TextChanged += new System.EventHandler(this.txtDeleteColumnsInfo_TextChanged); … … 198 213 // 199 214 this.label1.AutoSize = true; 200 this.label1.Location = new System.Drawing.Point(3, 3); 215 this.label1.Location = new System.Drawing.Point(4, 4); 216 this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 201 217 this.label1.Name = "label1"; 202 this.label1.Size = new System.Drawing.Size( 155, 13);218 this.label1.Size = new System.Drawing.Size(205, 17); 203 219 this.label1.TabIndex = 3; 204 220 this.label1.Text = "Delete columns with more than "; … … 209 225 this.tabDataDeleteColumnsVariance.Controls.Add(this.label4); 210 226 this.tabDataDeleteColumnsVariance.Location = new System.Drawing.Point(4, 22); 227 this.tabDataDeleteColumnsVariance.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 211 228 this.tabDataDeleteColumnsVariance.Name = "tabDataDeleteColumnsVariance"; 212 this.tabDataDeleteColumnsVariance.Padding = new System.Windows.Forms.Padding( 3);213 this.tabDataDeleteColumnsVariance.Size = new System.Drawing.Size( 711, 138);229 this.tabDataDeleteColumnsVariance.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 230 this.tabDataDeleteColumnsVariance.Size = new System.Drawing.Size(951, 176); 214 231 this.tabDataDeleteColumnsVariance.TabIndex = 1; 215 232 this.tabDataDeleteColumnsVariance.Text = "del columns variance"; … … 218 235 // txtDeleteColumnsVariance 219 236 // 220 this.txtDeleteColumnsVariance.Location = new System.Drawing.Point(229, 0); 237 this.txtDeleteColumnsVariance.Location = new System.Drawing.Point(305, 0); 238 this.txtDeleteColumnsVariance.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 221 239 this.txtDeleteColumnsVariance.Name = "txtDeleteColumnsVariance"; 222 this.txtDeleteColumnsVariance.Size = new System.Drawing.Size(1 35, 20);240 this.txtDeleteColumnsVariance.Size = new System.Drawing.Size(179, 22); 223 241 this.txtDeleteColumnsVariance.TabIndex = 4; 224 242 this.txtDeleteColumnsVariance.TextChanged += new System.EventHandler(this.txtDeleteColumnsVariance_TextChanged); … … 227 245 // 228 246 this.label4.AutoSize = true; 229 this.label4.Location = new System.Drawing.Point(3, 3); 247 this.label4.Location = new System.Drawing.Point(4, 4); 248 this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 230 249 this.label4.Name = "label4"; 231 this.label4.Size = new System.Drawing.Size(2 20, 13);250 this.label4.Size = new System.Drawing.Size(292, 17); 232 251 this.label4.TabIndex = 3; 233 252 this.label4.Text = "Delete columns with a variance smaller than "; … … 239 258 this.tabDataDeleteRowsInfo.Controls.Add(this.label5); 240 259 this.tabDataDeleteRowsInfo.Location = new System.Drawing.Point(4, 22); 260 this.tabDataDeleteRowsInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 241 261 this.tabDataDeleteRowsInfo.Name = "tabDataDeleteRowsInfo"; 242 this.tabDataDeleteRowsInfo.Padding = new System.Windows.Forms.Padding( 3);243 this.tabDataDeleteRowsInfo.Size = new System.Drawing.Size( 711, 138);262 this.tabDataDeleteRowsInfo.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 263 this.tabDataDeleteRowsInfo.Size = new System.Drawing.Size(951, 176); 244 264 this.tabDataDeleteRowsInfo.TabIndex = 2; 245 265 this.tabDataDeleteRowsInfo.Text = "del rows info"; … … 249 269 // 250 270 this.label3.AutoSize = true; 251 this.label3.Location = new System.Drawing.Point(189, 3); 271 this.label3.Location = new System.Drawing.Point(252, 4); 272 this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 252 273 this.label3.Name = "label3"; 253 this.label3.Size = new System.Drawing.Size( 89, 13);274 this.label3.Size = new System.Drawing.Size(120, 17); 254 275 this.label3.TabIndex = 8; 255 276 this.label3.Text = "% missing values."; … … 257 278 // txtDeleteRowsInfo 258 279 // 259 this.txtDeleteRowsInfo.Location = new System.Drawing.Point(147, 0); 280 this.txtDeleteRowsInfo.Location = new System.Drawing.Point(196, 0); 281 this.txtDeleteRowsInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 260 282 this.txtDeleteRowsInfo.Name = "txtDeleteRowsInfo"; 261 this.txtDeleteRowsInfo.Size = new System.Drawing.Size( 34, 20);283 this.txtDeleteRowsInfo.Size = new System.Drawing.Size(44, 22); 262 284 this.txtDeleteRowsInfo.TabIndex = 7; 263 285 this.txtDeleteRowsInfo.TextChanged += new System.EventHandler(this.txtDeleteRowsInfo_TextChanged); … … 266 288 // 267 289 this.label5.AutoSize = true; 268 this.label5.Location = new System.Drawing.Point(3, 3); 290 this.label5.Location = new System.Drawing.Point(4, 4); 291 this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 269 292 this.label5.Name = "label5"; 270 this.label5.Size = new System.Drawing.Size(1 38, 13);293 this.label5.Size = new System.Drawing.Size(182, 17); 271 294 this.label5.TabIndex = 6; 272 295 this.label5.Text = "Delete rows with more than "; … … 281 304 this.tabReplaceMissingValues.Controls.Add(this.label10); 282 305 this.tabReplaceMissingValues.Location = new System.Drawing.Point(4, 22); 306 this.tabReplaceMissingValues.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 283 307 this.tabReplaceMissingValues.Name = "tabReplaceMissingValues"; 284 this.tabReplaceMissingValues.Padding = new System.Windows.Forms.Padding( 3);285 this.tabReplaceMissingValues.Size = new System.Drawing.Size( 711, 138);308 this.tabReplaceMissingValues.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 309 this.tabReplaceMissingValues.Size = new System.Drawing.Size(951, 176); 286 310 this.tabReplaceMissingValues.TabIndex = 6; 287 311 this.tabReplaceMissingValues.Text = "repl missing vals"; … … 290 314 // txtReplaceValue 291 315 // 292 this.txtReplaceValue.Location = new System.Drawing.Point(173, 27); 316 this.txtReplaceValue.Location = new System.Drawing.Point(231, 33); 317 this.txtReplaceValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 293 318 this.txtReplaceValue.Name = "txtReplaceValue"; 294 this.txtReplaceValue.Size = new System.Drawing.Size(1 00, 20);319 this.txtReplaceValue.Size = new System.Drawing.Size(132, 22); 295 320 this.txtReplaceValue.TabIndex = 2; 296 321 this.txtReplaceValue.TextChanged += new System.EventHandler(this.txtReplaceValue_TextChanged); … … 300 325 this.cmbVariableNames.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 301 326 this.cmbVariableNames.FormattingEnabled = true; 302 this.cmbVariableNames.Location = new System.Drawing.Point(142, 0); 327 this.cmbVariableNames.Location = new System.Drawing.Point(189, 0); 328 this.cmbVariableNames.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 303 329 this.cmbVariableNames.Name = "cmbVariableNames"; 304 this.cmbVariableNames.Size = new System.Drawing.Size(1 21, 21);330 this.cmbVariableNames.Size = new System.Drawing.Size(160, 24); 305 331 this.cmbVariableNames.TabIndex = 1; 306 332 this.cmbVariableNames.SelectedIndexChanged += new System.EventHandler(this.cmbReplaceWith_SelectedIndexChanged); … … 316 342 "Most Common", 317 343 "Random"}); 318 this.cmbReplaceWith.Location = new System.Drawing.Point(35, 27); 344 this.cmbReplaceWith.Location = new System.Drawing.Point(47, 33); 345 this.cmbReplaceWith.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 319 346 this.cmbReplaceWith.Name = "cmbReplaceWith"; 320 this.cmbReplaceWith.Size = new System.Drawing.Size(1 21, 21);347 this.cmbReplaceWith.Size = new System.Drawing.Size(160, 24); 321 348 this.cmbReplaceWith.TabIndex = 1; 322 349 this.cmbReplaceWith.SelectedIndexChanged += new System.EventHandler(this.cmbReplaceWith_SelectedIndexChanged); … … 325 352 // 326 353 this.lblValueColon.AutoSize = true; 327 this.lblValueColon.Location = new System.Drawing.Point(157, 30); 354 this.lblValueColon.Location = new System.Drawing.Point(209, 37); 355 this.lblValueColon.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 328 356 this.lblValueColon.Name = "lblValueColon"; 329 this.lblValueColon.Size = new System.Drawing.Size(1 0, 13);357 this.lblValueColon.Size = new System.Drawing.Size(12, 17); 330 358 this.lblValueColon.TabIndex = 0; 331 359 this.lblValueColon.Text = ":"; … … 334 362 // 335 363 this.label8.AutoSize = true; 336 this.label8.Location = new System.Drawing.Point(3, 30); 364 this.label8.Location = new System.Drawing.Point(4, 37); 365 this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 337 366 this.label8.Name = "label8"; 338 this.label8.Size = new System.Drawing.Size( 26, 13);367 this.label8.Size = new System.Drawing.Size(32, 17); 339 368 this.label8.TabIndex = 0; 340 369 this.label8.Text = "with"; … … 343 372 // 344 373 this.label10.AutoSize = true; 345 this.label10.Location = new System.Drawing.Point(3, 3); 374 this.label10.Location = new System.Drawing.Point(4, 4); 375 this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 346 376 this.label10.Name = "label10"; 347 this.label10.Size = new System.Drawing.Size(1 33, 13);377 this.label10.Size = new System.Drawing.Size(177, 17); 348 378 this.label10.TabIndex = 0; 349 379 this.label10.Text = "Replace missing values for"; … … 354 384 this.tabDataShuffle.Controls.Add(this.lblShuffleProperties); 355 385 this.tabDataShuffle.Location = new System.Drawing.Point(4, 22); 386 this.tabDataShuffle.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 356 387 this.tabDataShuffle.Name = "tabDataShuffle"; 357 this.tabDataShuffle.Padding = new System.Windows.Forms.Padding( 3);358 this.tabDataShuffle.Size = new System.Drawing.Size( 711, 138);388 this.tabDataShuffle.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 389 this.tabDataShuffle.Size = new System.Drawing.Size(951, 176); 359 390 this.tabDataShuffle.TabIndex = 4; 360 391 this.tabDataShuffle.Text = "shuffle"; 361 392 this.tabDataShuffle.UseVisualStyleBackColor = true; 362 393 // 394 // shuffleSeparatelyCheckbox 395 // 396 this.shuffleSeparatelyCheckbox.AutoSize = true; 397 this.shuffleSeparatelyCheckbox.Location = new System.Drawing.Point(8, 2); 398 this.shuffleSeparatelyCheckbox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 399 this.shuffleSeparatelyCheckbox.Name = "shuffleSeparatelyCheckbox"; 400 this.shuffleSeparatelyCheckbox.Size = new System.Drawing.Size(312, 21); 401 this.shuffleSeparatelyCheckbox.TabIndex = 1; 402 this.shuffleSeparatelyCheckbox.Text = "Shuffle training and test partitions separately"; 403 this.shuffleSeparatelyCheckbox.UseVisualStyleBackColor = true; 404 // 363 405 // lblShuffleProperties 364 406 // 365 407 this.lblShuffleProperties.AutoSize = true; 366 408 this.lblShuffleProperties.Enabled = false; 367 this.lblShuffleProperties.Location = new System.Drawing.Point(3, 3); 409 this.lblShuffleProperties.Location = new System.Drawing.Point(4, 4); 410 this.lblShuffleProperties.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 368 411 this.lblShuffleProperties.Name = "lblShuffleProperties"; 369 this.lblShuffleProperties.Size = new System.Drawing.Size(1 15, 13);412 this.lblShuffleProperties.Size = new System.Drawing.Size(154, 17); 370 413 this.lblShuffleProperties.TabIndex = 0; 371 414 this.lblShuffleProperties.Text = "No properties available"; … … 377 420 | System.Windows.Forms.AnchorStyles.Right))); 378 421 this.grpBoxPreview.Controls.Add(this.tabsPreview); 379 this.grpBoxPreview.Location = new System.Drawing.Point(4, 301); 422 this.grpBoxPreview.Location = new System.Drawing.Point(5, 370); 423 this.grpBoxPreview.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 380 424 this.grpBoxPreview.Name = "grpBoxPreview"; 381 this.grpBoxPreview.Size = new System.Drawing.Size(732, 193); 425 this.grpBoxPreview.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 426 this.grpBoxPreview.Size = new System.Drawing.Size(976, 238); 382 427 this.grpBoxPreview.TabIndex = 4; 383 428 this.grpBoxPreview.TabStop = false; … … 395 440 this.tabsPreview.Controls.Add(this.tabPreviewShuffle); 396 441 this.tabsPreview.ItemSize = new System.Drawing.Size(58, 18); 397 this.tabsPreview.Location = new System.Drawing.Point(6, 19); 442 this.tabsPreview.Location = new System.Drawing.Point(8, 23); 443 this.tabsPreview.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 398 444 this.tabsPreview.Name = "tabsPreview"; 399 445 this.tabsPreview.SelectedIndex = 0; 400 this.tabsPreview.Size = new System.Drawing.Size( 719, 168);446 this.tabsPreview.Size = new System.Drawing.Size(959, 207); 401 447 this.tabsPreview.TabIndex = 3; 402 448 // … … 405 451 this.tabPreviewInactive.Controls.Add(this.lblPreviewInActive); 406 452 this.tabPreviewInactive.Location = new System.Drawing.Point(4, 22); 453 this.tabPreviewInactive.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 407 454 this.tabPreviewInactive.Name = "tabPreviewInactive"; 408 this.tabPreviewInactive.Padding = new System.Windows.Forms.Padding( 3);409 this.tabPreviewInactive.Size = new System.Drawing.Size( 711, 142);455 this.tabPreviewInactive.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 456 this.tabPreviewInactive.Size = new System.Drawing.Size(951, 181); 410 457 this.tabPreviewInactive.TabIndex = 5; 411 458 this.tabPreviewInactive.Text = "inactive"; … … 415 462 // 416 463 this.lblPreviewInActive.AutoSize = true; 417 this.lblPreviewInActive.Location = new System.Drawing.Point(3, 3); 464 this.lblPreviewInActive.Location = new System.Drawing.Point(4, 4); 465 this.lblPreviewInActive.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 418 466 this.lblPreviewInActive.Name = "lblPreviewInActive"; 419 this.lblPreviewInActive.Size = new System.Drawing.Size( 361, 39);467 this.lblPreviewInActive.Size = new System.Drawing.Size(491, 51); 420 468 this.lblPreviewInActive.TabIndex = 2; 421 469 this.lblPreviewInActive.Text = "Filters are active and thus manipulations cannot be applied!\r\n\r\nPlease deactive t" + … … 425 473 // tabPreviewDeleteColumnsInfo 426 474 // 427 this.tabPreviewDeleteColumnsInfo.Controls.Add(this. lblPreviewColumnsInfo);475 this.tabPreviewDeleteColumnsInfo.Controls.Add(this.panel1); 428 476 this.tabPreviewDeleteColumnsInfo.Location = new System.Drawing.Point(4, 22); 477 this.tabPreviewDeleteColumnsInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 429 478 this.tabPreviewDeleteColumnsInfo.Name = "tabPreviewDeleteColumnsInfo"; 430 this.tabPreviewDeleteColumnsInfo.Padding = new System.Windows.Forms.Padding( 3);431 this.tabPreviewDeleteColumnsInfo.Size = new System.Drawing.Size( 711, 142);479 this.tabPreviewDeleteColumnsInfo.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 480 this.tabPreviewDeleteColumnsInfo.Size = new System.Drawing.Size(951, 181); 432 481 this.tabPreviewDeleteColumnsInfo.TabIndex = 0; 433 482 this.tabPreviewDeleteColumnsInfo.Text = "del columns info"; … … 437 486 // 438 487 this.lblPreviewColumnsInfo.AutoSize = true; 439 this.lblPreviewColumnsInfo.Location = new System.Drawing.Point(3, 3); 488 this.lblPreviewColumnsInfo.Dock = System.Windows.Forms.DockStyle.Left; 489 this.lblPreviewColumnsInfo.Location = new System.Drawing.Point(0, 0); 490 this.lblPreviewColumnsInfo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 440 491 this.lblPreviewColumnsInfo.Name = "lblPreviewColumnsInfo"; 441 this.lblPreviewColumnsInfo.Size = new System.Drawing.Size( 318, 13);492 this.lblPreviewColumnsInfo.Size = new System.Drawing.Size(423, 17); 442 493 this.lblPreviewColumnsInfo.TabIndex = 1; 443 494 this.lblPreviewColumnsInfo.Text = "{0} columns with more than {1} % missing values would be deleted"; … … 445 496 // tabPreviewDeleteColumnsVariance 446 497 // 498 this.tabPreviewDeleteColumnsVariance.Controls.Add(this.panel2); 447 499 this.tabPreviewDeleteColumnsVariance.Controls.Add(this.label12); 448 this.tabPreviewDeleteColumnsVariance.Controls.Add(this.lblPreviewColumnsVariance);449 500 this.tabPreviewDeleteColumnsVariance.Location = new System.Drawing.Point(4, 22); 501 this.tabPreviewDeleteColumnsVariance.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 450 502 this.tabPreviewDeleteColumnsVariance.Name = "tabPreviewDeleteColumnsVariance"; 451 this.tabPreviewDeleteColumnsVariance.Padding = new System.Windows.Forms.Padding( 3);452 this.tabPreviewDeleteColumnsVariance.Size = new System.Drawing.Size( 711, 142);503 this.tabPreviewDeleteColumnsVariance.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 504 this.tabPreviewDeleteColumnsVariance.Size = new System.Drawing.Size(951, 181); 453 505 this.tabPreviewDeleteColumnsVariance.TabIndex = 1; 454 506 this.tabPreviewDeleteColumnsVariance.Text = "del columns variance"; … … 458 510 // 459 511 this.label12.AutoSize = true; 460 this.label12.Location = new System.Drawing.Point(6, 22); 512 this.label12.Location = new System.Drawing.Point(8, 27); 513 this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 461 514 this.label12.Name = "label12"; 462 this.label12.Size = new System.Drawing.Size(0, 1 3);515 this.label12.Size = new System.Drawing.Size(0, 17); 463 516 this.label12.TabIndex = 2; 464 517 // … … 466 519 // 467 520 this.lblPreviewColumnsVariance.AutoSize = true; 468 this.lblPreviewColumnsVariance.Location = new System.Drawing.Point(3, 3); 521 this.lblPreviewColumnsVariance.Dock = System.Windows.Forms.DockStyle.Left; 522 this.lblPreviewColumnsVariance.Location = new System.Drawing.Point(0, 0); 523 this.lblPreviewColumnsVariance.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 469 524 this.lblPreviewColumnsVariance.Name = "lblPreviewColumnsVariance"; 470 this.lblPreviewColumnsVariance.Size = new System.Drawing.Size(3 01, 13);525 this.lblPreviewColumnsVariance.Size = new System.Drawing.Size(398, 17); 471 526 this.lblPreviewColumnsVariance.TabIndex = 2; 472 527 this.lblPreviewColumnsVariance.Text = "{0} columns with a variance smaller than {1} would be deleted."; … … 476 531 this.tabPreviewDeleteRowsInfo.Controls.Add(this.lblPreviewRowsInfo); 477 532 this.tabPreviewDeleteRowsInfo.Location = new System.Drawing.Point(4, 22); 533 this.tabPreviewDeleteRowsInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 478 534 this.tabPreviewDeleteRowsInfo.Name = "tabPreviewDeleteRowsInfo"; 479 this.tabPreviewDeleteRowsInfo.Padding = new System.Windows.Forms.Padding( 3);480 this.tabPreviewDeleteRowsInfo.Size = new System.Drawing.Size( 711, 142);535 this.tabPreviewDeleteRowsInfo.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 536 this.tabPreviewDeleteRowsInfo.Size = new System.Drawing.Size(951, 181); 481 537 this.tabPreviewDeleteRowsInfo.TabIndex = 2; 482 538 this.tabPreviewDeleteRowsInfo.Text = "del rows info"; … … 486 542 // 487 543 this.lblPreviewRowsInfo.AutoSize = true; 488 this.lblPreviewRowsInfo.Location = new System.Drawing.Point(3, 3); 544 this.lblPreviewRowsInfo.Location = new System.Drawing.Point(4, 4); 545 this.lblPreviewRowsInfo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 489 546 this.lblPreviewRowsInfo.Name = "lblPreviewRowsInfo"; 490 this.lblPreviewRowsInfo.Size = new System.Drawing.Size( 301, 13);547 this.lblPreviewRowsInfo.Size = new System.Drawing.Size(400, 17); 491 548 this.lblPreviewRowsInfo.TabIndex = 2; 492 549 this.lblPreviewRowsInfo.Text = "{0} rows with more than {1} % missing values would be deleted"; … … 496 553 this.tabPreviewReplaceMissingValues.Controls.Add(this.lblPreviewReplaceMissingValues); 497 554 this.tabPreviewReplaceMissingValues.Location = new System.Drawing.Point(4, 22); 555 this.tabPreviewReplaceMissingValues.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 498 556 this.tabPreviewReplaceMissingValues.Name = "tabPreviewReplaceMissingValues"; 499 this.tabPreviewReplaceMissingValues.Padding = new System.Windows.Forms.Padding( 3);500 this.tabPreviewReplaceMissingValues.Size = new System.Drawing.Size( 711, 142);557 this.tabPreviewReplaceMissingValues.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 558 this.tabPreviewReplaceMissingValues.Size = new System.Drawing.Size(951, 181); 501 559 this.tabPreviewReplaceMissingValues.TabIndex = 6; 502 560 this.tabPreviewReplaceMissingValues.Text = "repl missing vals"; … … 506 564 // 507 565 this.lblPreviewReplaceMissingValues.AutoSize = true; 508 this.lblPreviewReplaceMissingValues.Location = new System.Drawing.Point(3, 3); 566 this.lblPreviewReplaceMissingValues.Location = new System.Drawing.Point(4, 4); 567 this.lblPreviewReplaceMissingValues.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 509 568 this.lblPreviewReplaceMissingValues.Name = "lblPreviewReplaceMissingValues"; 510 this.lblPreviewReplaceMissingValues.Size = new System.Drawing.Size( 343, 13);569 this.lblPreviewReplaceMissingValues.Size = new System.Drawing.Size(449, 17); 511 570 this.lblPreviewReplaceMissingValues.TabIndex = 3; 512 571 this.lblPreviewReplaceMissingValues.Text = "{0} cells detected with missing values which would be replaced with {1}"; … … 516 575 this.tabPreviewShuffle.Controls.Add(this.lblPreviewShuffle); 517 576 this.tabPreviewShuffle.Location = new System.Drawing.Point(4, 22); 577 this.tabPreviewShuffle.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 518 578 this.tabPreviewShuffle.Name = "tabPreviewShuffle"; 519 this.tabPreviewShuffle.Padding = new System.Windows.Forms.Padding( 3);520 this.tabPreviewShuffle.Size = new System.Drawing.Size( 711, 142);579 this.tabPreviewShuffle.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 580 this.tabPreviewShuffle.Size = new System.Drawing.Size(951, 181); 521 581 this.tabPreviewShuffle.TabIndex = 4; 522 582 this.tabPreviewShuffle.Text = "shuffle"; … … 526 586 // 527 587 this.lblPreviewShuffle.AutoSize = true; 528 this.lblPreviewShuffle.Location = new System.Drawing.Point(3, 3); 588 this.lblPreviewShuffle.Location = new System.Drawing.Point(4, 4); 589 this.lblPreviewShuffle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 529 590 this.lblPreviewShuffle.Name = "lblPreviewShuffle"; 530 this.lblPreviewShuffle.Size = new System.Drawing.Size( 252, 13);591 this.lblPreviewShuffle.Size = new System.Drawing.Size(337, 17); 531 592 this.lblPreviewShuffle.TabIndex = 0; 532 593 this.lblPreviewShuffle.Text = "Data will be shuffled randomly - preview not possible"; … … 539 600 this.label9.TabIndex = 0; 540 601 // 541 // shuffleSeparatelyCheckbox 542 // 543 this.shuffleSeparatelyCheckbox.AutoSize = true; 544 this.shuffleSeparatelyCheckbox.Location = new System.Drawing.Point(6, 2); 545 this.shuffleSeparatelyCheckbox.Name = "shuffleSeparatelyCheckbox"; 546 this.shuffleSeparatelyCheckbox.Size = new System.Drawing.Size(233, 17); 547 this.shuffleSeparatelyCheckbox.TabIndex = 1; 548 this.shuffleSeparatelyCheckbox.Text = "Shuffle training and test partitions separately"; 549 this.shuffleSeparatelyCheckbox.UseVisualStyleBackColor = true; 602 // panel1 603 // 604 this.panel1.AutoScroll = true; 605 this.panel1.Controls.Add(this.lblPreviewColumnsInfo); 606 this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; 607 this.panel1.Location = new System.Drawing.Point(4, 4); 608 this.panel1.Name = "panel1"; 609 this.panel1.Size = new System.Drawing.Size(943, 173); 610 this.panel1.TabIndex = 2; 611 // 612 // panel2 613 // 614 this.panel2.AutoScroll = true; 615 this.panel2.Controls.Add(this.lblPreviewColumnsVariance); 616 this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; 617 this.panel2.Location = new System.Drawing.Point(4, 4); 618 this.panel2.Name = "panel2"; 619 this.panel2.Size = new System.Drawing.Size(943, 173); 620 this.panel2.TabIndex = 3; 550 621 // 551 622 // ManipulationView 552 623 // 553 this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F);624 this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 554 625 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 555 626 this.Controls.Add(this.btnApply); … … 557 628 this.Controls.Add(this.grpBoxData); 558 629 this.Controls.Add(this.lstMethods); 630 this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 559 631 this.Name = "ManipulationView"; 560 this.Size = new System.Drawing.Size( 739, 529);632 this.Size = new System.Drawing.Size(985, 651); 561 633 this.grpBoxData.ResumeLayout(false); 562 634 this.tabsData.ResumeLayout(false); … … 578 650 this.tabPreviewInactive.PerformLayout(); 579 651 this.tabPreviewDeleteColumnsInfo.ResumeLayout(false); 580 this.tabPreviewDeleteColumnsInfo.PerformLayout();581 652 this.tabPreviewDeleteColumnsVariance.ResumeLayout(false); 582 653 this.tabPreviewDeleteColumnsVariance.PerformLayout(); … … 587 658 this.tabPreviewShuffle.ResumeLayout(false); 588 659 this.tabPreviewShuffle.PerformLayout(); 660 this.panel1.ResumeLayout(false); 661 this.panel1.PerformLayout(); 662 this.panel2.ResumeLayout(false); 663 this.panel2.PerformLayout(); 589 664 this.ResumeLayout(false); 590 665 … … 636 711 private System.Windows.Forms.Label lblPreviewInActive; 637 712 private System.Windows.Forms.CheckBox shuffleSeparatelyCheckbox; 713 private System.Windows.Forms.Panel panel1; 714 private System.Windows.Forms.Panel panel2; 638 715 } 639 716 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
r12012 r12676 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Globalization; 26 using System.Linq; 27 using System.Text; 25 28 using System.Windows.Forms; 26 29 using HeuristicLab.Core.Views; … … 149 152 validateDoubleTextBox(txtDeleteColumnsInfo.Text); 150 153 if (btnApply.Enabled) { 151 int count = Content.ManipulationLogic.ColumnsWithMissingValuesGreater(getDeleteColumnsInfo()).Count; 152 int rowCount = Content.FilterLogic.PreprocessingData.Rows; 153 lblPreviewColumnsInfo.Text = count + " column" + (count > 1 || count == 0 ? "s" : "") + " of " + rowCount + " (" + string.Format("{0:F2}%", 100d / rowCount * count) + ") were detected with more than " + txtDeleteColumnsInfo.Text + "% missing values."; 154 var filteredColumns = Content.ManipulationLogic.ColumnsWithMissingValuesGreater(getDeleteColumnsInfo()); 155 int count = filteredColumns.Count; 156 int columnCount = Content.FilterLogic.PreprocessingData.Columns; 157 lblPreviewColumnsInfo.Text = count + " column" + (count > 1 || count == 0 ? "s" : "") + " of " + columnCount + " (" + string.Format("{0:F2}%", 100d / columnCount * count) + ") were detected with more than " + txtDeleteColumnsInfo.Text + "% missing values."; 154 158 if (count > 0) { 155 lblPreviewColumnsInfo.Text += Environment.NewLine + Environment.NewLine + "Please press the button \"Apply Manipulation\" if you wish to delete those columns."; 159 StringBuilder sb = new StringBuilder(); 160 sb.Append(Environment.NewLine); 161 sb.Append("Columns: "); 162 sb.Append(Content.SearchLogic.VariableNames.ElementAt(filteredColumns.ElementAt(0))); 163 for (int i = 1; i < filteredColumns.Count; i++) { 164 string columnName = Content.SearchLogic.VariableNames.ElementAt(filteredColumns.ElementAt(i)); 165 sb.Append(", "); 166 sb.Append(columnName); 167 } 168 sb.Append(Environment.NewLine); 169 sb.Append("Please press the button \"Apply Manipulation\" if you wish to delete those columns."); 170 171 lblPreviewColumnsInfo.Text += sb.ToString(); 156 172 } else { 157 173 btnApply.Enabled = false; … … 165 181 validateDoubleTextBox(txtDeleteColumnsVariance.Text); 166 182 if (btnApply.Enabled) { 167 int count = Content.ManipulationLogic.ColumnsWithVarianceSmaller(getDeleteColumnsVariance()).Count; 168 int rowCount = Content.FilterLogic.PreprocessingData.Rows; 169 lblPreviewColumnsVariance.Text = count + " column" + (count > 1 || count == 0 ? "s" : "") + " of " + rowCount + " (" + string.Format("{0:F2}%", 100d / rowCount * count) + ") were detected with a variance smaller than " + txtDeleteColumnsVariance.Text + "."; 183 var filteredColumns = Content.ManipulationLogic.ColumnsWithVarianceSmaller(getDeleteColumnsVariance()); 184 int count = filteredColumns.Count; 185 int columnCount = Content.FilterLogic.PreprocessingData.Columns; 186 lblPreviewColumnsVariance.Text = count + " column" + (count > 1 || count == 0 ? "s" : "") + " of " + columnCount + " (" + string.Format("{0:F2}%", 100d / columnCount * count) + ") were detected with a variance smaller than " + txtDeleteColumnsVariance.Text + "."; 170 187 if (count > 0) { 171 lblPreviewColumnsVariance.Text += Environment.NewLine + Environment.NewLine + "Please press the button \"Apply Manipulation\" if you wish to delete those columns."; 188 StringBuilder sb = new StringBuilder(); 189 sb.Append(Environment.NewLine); 190 sb.Append("Columns: "); 191 sb.Append(Content.SearchLogic.VariableNames.ElementAt(filteredColumns.ElementAt(0))); 192 for (int i = 1; i < filteredColumns.Count; i++) { 193 string columnName = Content.SearchLogic.VariableNames.ElementAt(filteredColumns.ElementAt(i)); 194 sb.Append(", "); 195 sb.Append(columnName); 196 } 197 sb.Append(Environment.NewLine); 198 sb.Append("Please press the button \"Apply Manipulation\" if you wish to delete those columns."); 199 200 lblPreviewColumnsVariance.Text += sb.ToString(); 172 201 } else { 173 202 btnApply.Enabled = false; … … 279 308 if (!string.IsNullOrEmpty(text)) { 280 309 double percent; 281 if (Double.TryParse(text, out percent)) {310 if (Double.TryParse(text, NumberStyles.Number ^ NumberStyles.AllowThousands, CultureInfo.CurrentCulture, out percent)) { 282 311 btnApply.Enabled = true; 283 312 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs
r12012 r12676 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using System.Windows.Forms; 25 26 using HeuristicLab.Analysis; … … 49 50 50 51 public IEnumerable<double> Classification { get; set; } 52 public bool IsDetailedChartViewEnabled { get; set; } 51 53 52 54 public PreprocessingChartView() { … … 59 61 //Add or remove data row 60 62 private void CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<StringValue>> checkedItems) { 63 61 64 foreach (IndexedItem<StringValue> item in checkedItems.Items) { 62 65 string variableName = item.Value.Value; … … 121 124 if (Content.VariableItemList == null) { 122 125 Content.VariableItemList = Content.CreateVariableItemList(); 126 } else { 127 var checkedNames = Content.VariableItemList.CheckedItems.Select(x => x.Value.Value); 128 Content.VariableItemList = Content.CreateVariableItemList(checkedNames); 123 129 } 124 130 checkedItemList.Content = Content.VariableItemList; … … 135 141 DataRow row = GetDataRow(variableName); 136 142 137 //add row to data table 138 dataTable.Rows.Add(row); 139 140 //add row to data table per variable 141 d.Rows.Add(row); 142 dataTablePerVariable.Add(d); 143 if (row != null) { 144 //add row to data table 145 dataTable.Rows.Add(row); 146 147 //add row to data table per variable 148 d.Rows.Add(row); 149 dataTablePerVariable.Add(d); 150 } 143 151 } 144 152 … … 152 160 dataTable.SelectedRows.Clear(); 153 161 foreach (var selectedRow in selectedDataRows) { 154 if (VariableIsDisplayed(selectedRow.Name))162 if (VariableIsDisplayed(selectedRow.Name)) 155 163 dataTable.SelectedRows.Add(selectedRow); 156 164 } … … 354 362 PreprocessingDataTableView dataView = new PreprocessingDataTableView(); 355 363 dataView.Classification = Classification; 364 dataView.IsDetailedChartViewEnabled = IsDetailedChartViewEnabled; 356 365 357 366 if (dataTable == null) { -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingDataTableView.cs
r12012 r12676 47 47 48 48 public IEnumerable<double> Classification { get; set; } 49 public bool IsDetailedChartViewEnabled { get; set; } 49 50 50 51 public PreprocessingDataTableView() { … … 145 146 RegisterDataRowEvents(row); 146 147 var series = new Series(row.Name); 147 if (row.VisualProperties.DisplayName.Trim() != String.Empty) series.LegendText = row.VisualProperties.DisplayName; 148 if (row.VisualProperties.DisplayName.Trim() != String.Empty) 149 series.LegendText = row.VisualProperties.DisplayName; 148 150 else series.LegendText = row.Name; 151 149 152 ConfigureSeries(series, row); 150 153 FillSeriesWithRowValues(series, row); 151 154 155 if (IsDetailedChartViewEnabled) { 156 series.LegendText += " Values: " + row.Values.Count; 157 } 152 158 if (Classification == null) 153 159 chart.Series.Add(series); … … 661 667 662 668 chart.Titles.Add(row.Name); 663 669 int featureOverallValueCount = 0; 670 if (IsDetailedChartViewEnabled) 671 featureOverallValueCount = row.Values.Count(x => !IsInvalidValue(x)); 664 672 foreach (KeyValuePair<double, List<double>> entry in valuesPerClass) { 665 673 var s = new Series(row.Name + entry.Key); … … 669 677 670 678 s.LegendText = entry.Key.ToString(); 671 679 if (IsDetailedChartViewEnabled) { 680 int featureValueCount = entry.Value.Count(x => !IsInvalidValue(x)); 681 s.LegendText += " Values: "; 682 s.LegendText += (featureOverallValueCount > 0) ? 683 string.Format("{0} ({1:F2}%)", featureValueCount, (featureValueCount / (double)featureOverallValueCount) * 100) 684 : "0"; 685 } 672 686 chart.Series.Add(s); 673 687 } … … 752 766 ? "Y" 753 767 : Content.VisualProperties.YAxisTitle; 754 series.Points.Add(new DataPoint(d - intervalCenter, sum) { 755 ToolTip = 756 xAxisTitle + ": [" + (d - intervalWidth) + "-" + d + ")" + Environment.NewLine + 757 yAxisTitle + ": " + sum 758 }); 768 DataPoint newDataPoint = new DataPoint(d - intervalCenter, sum); 769 newDataPoint.ToolTip = 770 xAxisTitle + ": [" + (d - intervalWidth) + "-" + d + ")" + Environment.NewLine + 771 yAxisTitle + ": " + sum; 772 int overallValueCount = row.Values.Count(); 773 if (overallValueCount > 0) 774 newDataPoint.ToolTip += string.Format(" ({0:F2}%)", (sum / overallValueCount) * 100); 775 series.Points.Add(newDataPoint); 759 776 } 760 777 } -
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.cs
r12012 r12676 166 166 "", //standard deviation 167 167 "", //variance 168 logic.GetMostCommonValue<string>(columnIndex) .ToString(),168 logic.GetMostCommonValue<string>(columnIndex) ?? "", 169 169 logic.GetDifferentValuesCount<string>(columnIndex).ToString() 170 170 }; -
trunk/sources/HeuristicLab.DataPreprocessing/3.4
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/DataPreprocessingImprovements/HeuristicLab.DataPreprocessing/3.4 merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5516-5520 /branches/Benchmarking/sources/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 6917-7005 /branches/CloningRefactoring/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 4656-4721 /branches/CodeEditor/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5815-6180 /branches/DataAnalysis/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 10085-11101 /branches/DataPreprocessingImprovements/3.4 12051 /branches/GP.Grammar.Editor/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5060 /branches/HLScript/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 10331-10358 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 10202-10483 /branches/NET40/sources/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5138-5162 /branches/ParallelEngine/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 7568-7810 /branches/QAPAlgorithms/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 6350-6627 /branches/Restructure trunk solution/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 6828 /branches/RuntimeOptimizer/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 7787-8333 /branches/SlaveShutdown/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5370-5682 /branches/Trunk/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 6829-6865 /branches/UnloadJobs/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 9168-9215 /branches/VNS/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5594-5752 /branches/histogram/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 5959-6341 /stable/HeuristicLab.DataPreprocessing/HeuristicLab.DataPreprocessing/3.4 10032-10033,11170,11173,11175,12008-12010
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/HeuristicLab.DataPreprocessing-3.4.csproj
r11623 r12676 18 18 <DebugType>full</DebugType> 19 19 <Optimize>false</Optimize> 20 <OutputPath>..\..\ bin\</OutputPath>20 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 21 21 <DefineConstants>DEBUG;TRACE</DefineConstants> 22 22 <ErrorReport>prompt</ErrorReport> … … 28 28 <DebugType>pdbonly</DebugType> 29 29 <Optimize>true</Optimize> 30 <OutputPath>..\..\ bin\</OutputPath>30 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 31 31 <DefineConstants>TRACE</DefineConstants> 32 32 <ErrorReport>prompt</ErrorReport> … … 73 73 </PropertyGroup> 74 74 <ItemGroup> 75 <Reference Include="HeuristicLab.Analysis-3.3"> 76 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 77 </Reference> 78 <Reference Include="HeuristicLab.Collections-3.3"> 79 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 80 </Reference> 81 <Reference Include="HeuristicLab.Common-3.3"> 82 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 83 </Reference> 84 <Reference Include="HeuristicLab.Common.Resources-3.3"> 85 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 86 </Reference> 87 <Reference Include="HeuristicLab.Core-3.3"> 88 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 89 </Reference> 90 <Reference Include="HeuristicLab.Data-3.3"> 91 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 92 </Reference> 93 <Reference Include="HeuristicLab.Optimization-3.3"> 94 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 95 </Reference> 96 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 97 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 98 </Reference> 99 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.4"> 100 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis-3.4.dll</HintPath> 101 </Reference> 75 102 <Reference Include="System" /> 76 103 <Reference Include="System.Core" /> … … 124 151 <None Include="HeuristicLab.snk" /> 125 152 </ItemGroup> 126 <ItemGroup>127 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">128 <Project>{887425b4-4348-49ed-a457-b7d2c26ddbf9}</Project>129 <Name>HeuristicLab.Analysis-3.3</Name>130 <Private>False</Private>131 </ProjectReference>132 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">133 <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>134 <Name>HeuristicLab.Collections-3.3</Name>135 <Private>False</Private>136 </ProjectReference>137 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">138 <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project>139 <Name>HeuristicLab.Common.Resources-3.3</Name>140 <Private>False</Private>141 </ProjectReference>142 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">143 <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>144 <Name>HeuristicLab.Common-3.3</Name>145 <Private>False</Private>146 </ProjectReference>147 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">148 <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>149 <Name>HeuristicLab.Core-3.3</Name>150 <Private>False</Private>151 </ProjectReference>152 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">153 <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>154 <Name>HeuristicLab.Data-3.3</Name>155 <Private>False</Private>156 </ProjectReference>157 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">158 <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>159 <Name>HeuristicLab.Optimization-3.3</Name>160 <Private>False</Private>161 </ProjectReference>162 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">163 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>164 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>165 <Private>False</Private>166 </ProjectReference>167 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj">168 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project>169 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name>170 <Private>False</Private>171 </ProjectReference>172 </ItemGroup>173 153 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 174 154 <PropertyGroup> -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs
r12012 r12676 114 114 } 115 115 116 public void DeleteRow (IEnumerable<int> rows) {116 public void DeleteRows(IEnumerable<int> rows) { 117 117 PreProcessingData.DeleteRowsWithIndices(rows); 118 118 createRowNames(); 119 } 120 121 public void DeleteColumn(int column) { 122 PreProcessingData.DeleteColumn(column); 119 123 } 120 124 -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/HistogramContent.cs
r12012 r12676 42 42 set { this.classifierVariableIndex = value; } 43 43 } 44 public bool IsDetailedChartViewEnabled { get; set; } 44 45 45 46 -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/PreprocessingChartContent.cs
r12012 r12676 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Linq; 25 26 using HeuristicLab.Analysis; 26 27 using HeuristicLab.Common; … … 126 127 127 128 128 public ICheckedItemList<StringValue> CreateVariableItemList( ) {129 public ICheckedItemList<StringValue> CreateVariableItemList(IEnumerable<string> checkedItems = null) { 129 130 ICheckedItemList<StringValue> itemList = new CheckedItemList<StringValue>(); 130 131 foreach (string name in PreprocessingData.GetDoubleVariableNames()) { 131 itemList.Add(new StringValue(name), true); 132 var n = new StringValue(name); 133 itemList.Add(n, (checkedItems == null) ? true : checkedItems.Contains(name)); 132 134 } 133 135 return new ReadOnlyCheckedItemList<StringValue>(itemList); -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/SearchLogic.cs
r12012 r12676 23 23 using System.Collections; 24 24 using System.Collections.Generic; 25 using System.Linq;26 25 27 26 namespace HeuristicLab.DataPreprocessing { 28 27 public class SearchLogic : ISearchLogic { 29 28 private readonly ITransactionalPreprocessingData preprocessingData; 29 private readonly IFilterLogic filterLogic; 30 30 31 31 private Dictionary<int, IList<int>> MissingValueIndicies { get; set; } … … 44 44 } 45 45 46 public SearchLogic(ITransactionalPreprocessingData thePreprocessingData ) {46 public SearchLogic(ITransactionalPreprocessingData thePreprocessingData, IFilterLogic theFilterLogic) { 47 47 preprocessingData = thePreprocessingData; 48 filterLogic = theFilterLogic; 48 49 49 50 MissingValueIndicies = new Dictionary<int, IList<int>>(); 50 51 ValuesWithoutNaN = new Dictionary<int, IList>(); 51 52 52 preprocessingData.Changed += preprocessingData_Changed; 53 preprocessingData.Changed += PreprocessingData_Changed; 54 filterLogic.FilterChanged += FilterLogic_FilterChanged; 53 55 } 54 56 55 void preprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e) 56 { 57 void FilterLogic_FilterChanged(object sender, EventArgs e) { 58 //recalculate 59 for (int i = 0; i < Columns; i++) { 60 MissingValueIndicies.Remove(i); 61 ValuesWithoutNaN.Remove(i); 62 } 63 } 64 65 void PreprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e) { 57 66 switch (e.Type) { 58 67 case DataPreprocessingChangedEventType.DeleteColumn: … … 73 82 ValuesWithoutNaN = new Dictionary<int, IList>(); 74 83 break; 75 } 84 } 76 85 } 77 86 … … 97 106 98 107 public IList<int> GetMissingValueIndices(int columnIndex) { 99 if (!MissingValueIndicies.ContainsKey(columnIndex)){ 100 if (preprocessingData.VariableHasType<double>(columnIndex)) { 101 MissingValueIndicies[columnIndex] = GetMissingValueIndices<double>(columnIndex); 102 } else if (preprocessingData.VariableHasType<string>(columnIndex)) { 103 MissingValueIndicies[columnIndex] = GetMissingValueIndices<string>(columnIndex); 104 } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) { 105 MissingValueIndicies[columnIndex] = GetMissingValueIndices<DateTime>(columnIndex); 106 } else { 107 throw new ArgumentException("column " + columnIndex + " contains a non supported type."); 108 } 109 } 108 if (!MissingValueIndicies.ContainsKey(columnIndex)) { 109 if (preprocessingData.VariableHasType<double>(columnIndex)) { 110 MissingValueIndicies[columnIndex] = GetMissingValueIndices<double>(columnIndex); 111 } else if (preprocessingData.VariableHasType<string>(columnIndex)) { 112 MissingValueIndicies[columnIndex] = GetMissingValueIndices<string>(columnIndex); 113 } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) { 114 MissingValueIndicies[columnIndex] = GetMissingValueIndices<DateTime>(columnIndex); 115 } else { 116 throw new ArgumentException("column " + columnIndex + " contains a non supported type."); 117 } 118 } 119 return MissingValueIndicies[columnIndex]; 120 } 110 121 111 return MissingValueIndicies[columnIndex];112 }113 122 private IList<int> GetMissingValueIndices<T>(int columnIndex) { 114 123 List<int> missingIndices = new List<int>(); 115 116 for (int row = 0; row < preprocessingData.Rows; ++row) {124 125 for (int row = 0; row < preprocessingData.Rows; ++row) { 117 126 if (IsMissingValue(columnIndex, row)) { 118 127 missingIndices.Add(row); … … 123 132 } 124 133 125 public IEnumerable<T> GetValuesWithoutNaN<T>(int columnIndex, bool considerSelection) 126 { 127 if (considerSelection) { 128 var selectedRows = preprocessingData.Selection[columnIndex]; 129 134 public IEnumerable<T> GetValuesWithoutNaN<T>(int columnIndex, bool considerSelection) { 135 if (considerSelection) { 136 var selectedRows = preprocessingData.Selection[columnIndex]; 137 130 138 List<T> values = new List<T>(); 131 139 foreach (var rowIdx in selectedRows) { -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/StatisticsLogic.cs
r12012 r12676 38 38 39 39 public int GetColumnCount() { 40 return preprocessingData.Columns;40 return searchLogic.Columns; 41 41 } 42 42 43 43 public int GetRowCount() { 44 return preprocessingData.Rows;44 return searchLogic.Rows; 45 45 } 46 46 … … 48 48 int count = 0; 49 49 50 for (int i = 0; i < preprocessingData.Columns; ++i) {50 for (int i = 0; i < searchLogic.Columns; ++i) { 51 51 if (preprocessingData.VariableHasType<double>(i)) { 52 52 ++count; … … 57 57 58 58 public int GetNominalColumnCount() { 59 return preprocessingData.Columns - GetNumericColumnCount();59 return searchLogic.Columns - GetNumericColumnCount(); 60 60 } 61 61 62 62 public int GetMissingValueCount() { 63 63 int count = 0; 64 for (int i = 0; i < preprocessingData.Columns; ++i) {64 for (int i = 0; i < searchLogic.Columns; ++i) { 65 65 count += GetMissingValueCount(i); 66 66 } … … 73 73 74 74 public T GetMin<T>(int columnIndex, bool considerSelection) where T : IComparable<T> { 75 return preprocessingData.GetValues<T>(columnIndex, considerSelection).Min(); 75 var min = default(T); 76 if (preprocessingData.VariableHasType<T>(columnIndex)) { 77 var values = GetValuesWithoutNaN<T>(columnIndex, considerSelection); 78 if (values.Any()) { 79 min = values.Min(); 80 } 81 } 82 return min; 76 83 } 77 84 78 85 public T GetMax<T>(int columnIndex, bool considerSelection) where T : IComparable<T> { 79 return preprocessingData.GetValues<T>(columnIndex, considerSelection).Max(); 86 var max = default(T); 87 if (preprocessingData.VariableHasType<T>(columnIndex)) { 88 var values = GetValuesWithoutNaN<T>(columnIndex, considerSelection); 89 if (values.Any()) { 90 max = values.Max(); 91 } 92 } 93 return max; 80 94 } 81 95 … … 83 97 double median = double.NaN; 84 98 if (preprocessingData.VariableHasType<double>(columnIndex)) { 85 median = GetValuesWithoutNaN<double>(columnIndex, considerSelection).Median(); 99 var values = GetValuesWithoutNaN<double>(columnIndex, considerSelection); 100 if (values.Any()) { 101 median = values.Median(); 102 } 86 103 } 87 104 return median; … … 91 108 double avg = double.NaN; 92 109 if (preprocessingData.VariableHasType<double>(columnIndex)) { 93 avg = GetValuesWithoutNaN<double>(columnIndex, considerSelection).Average(); 110 var values = GetValuesWithoutNaN<double>(columnIndex, considerSelection); 111 if (values.Any()) { 112 avg = values.Average(); 113 } 94 114 } 95 115 return avg; … … 113 133 114 134 public T GetMostCommonValue<T>(int columnIndex, bool considerSelection) { 115 var t = preprocessingData.GetValues<T>(columnIndex, considerSelection); 116 var t2 = t.GroupBy(x => x); 117 var t3 = t2.Select(g => g.Key); 118 119 return preprocessingData.GetValues<T>(columnIndex, considerSelection) 120 .GroupBy(x => x) 135 var values = GetValuesWithoutNaN<T>(columnIndex, considerSelection); 136 if (!values.Any()) 137 return default(T); 138 return values.GroupBy(x => x) 121 139 .OrderByDescending(g => g.Count()) 122 140 .Select(g => g.Key) -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Interfaces/IDataGridContent.cs
r12012 r12676 31 31 IDictionary<int, IList<int>> Selection { get; set; } 32 32 33 void DeleteRow(IEnumerable<int> rows); 33 void DeleteRows(IEnumerable<int> rows); 34 void DeleteColumn(int column); 34 35 bool Validate(string value, out string errorMessage, int columnIndex); 35 36 -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs
r12012 r12676 61 61 SetTrainingAndTestPartition(problemData); 62 62 // set the input variables to the correct checked state 63 var inputVariables = problemData.InputVariables.ToDictionary(x => x.Value, x => x);64 foreach (var variable in oldProblemData.InputVariables) {65 bool @checked = oldProblemData.InputVariables.ItemChecked(variable);66 problemData.InputVariables.SetItemCheckedState( inputVariables[variable.Value], @checked);63 var inputVariables = oldProblemData.InputVariables.ToDictionary(x => x.Value, x => x); 64 foreach (var variable in problemData.InputVariables) { 65 bool isChecked = oldProblemData.InputVariables.ItemChecked(inputVariables[variable.Value]); 66 problemData.InputVariables.SetItemCheckedState(variable, isChecked); 67 67 } 68 68 … … 77 77 78 78 private IDataAnalysisProblemData CreateClassificationData(ClassificationProblemData oldProblemData) { 79 // target variable must be double and must exist in the new dataset 79 80 var targetVariable = oldProblemData.TargetVariable; 80 // target variable must be double and must exist in the new dataset 81 return new ClassificationProblemData(ExportedDataset, GetDoubleInputVariables(targetVariable), targetVariable, Transformations); 81 var newProblemData = new ClassificationProblemData(ExportedDataset, GetDoubleInputVariables(targetVariable), targetVariable, Transformations); 82 newProblemData.PositiveClass = oldProblemData.PositiveClass; 83 return newProblemData; 82 84 } 83 85
Note: See TracChangeset
for help on using the changeset viewer.