Changeset 14996 for branches/DataPreprocessing Enhancements
- Timestamp:
- 05/18/17 12:29:59 (8 years ago)
- Location:
- branches/DataPreprocessing Enhancements
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/CheckedFilterCollectionView.cs
r14185 r14996 21 21 22 22 using System; 23 using System.Windows.Forms;24 23 using HeuristicLab.Core; 25 24 using HeuristicLab.Core.Views; -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/CheckedTransformationListView.cs
r14185 r14996 32 32 namespace HeuristicLab.DataPreprocessing.Views { 33 33 [View("CheckedTransformationList View")] 34 //[Content(typeof(RunCollectionConstraintCollection), true)]35 34 [Content(typeof(ICheckedItemList<ITransformation>), false)] 36 35 public partial class CheckedTransformationListView : CheckedItemListView<ITransformation> { 37 38 36 public CheckedTransformationListView() { 39 37 InitializeComponent(); … … 56 54 57 55 return (ITransformation)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(new[] { columnNames }); 58 } 59 catch (Exception ex) { 56 } catch (Exception ex) { 60 57 ErrorHandling.ShowErrorDialog(this, ex); 61 58 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ComparisonFilterView.cs
r14185 r14996 32 32 [Content(typeof(ComparisonFilter), false)] 33 33 public partial class ComparisonFilterView : ItemView { 34 public ComparisonFilterView() {35 InitializeComponent();36 }37 38 34 public new ComparisonFilter Content { 39 35 get { return (ComparisonFilter)base.Content; } … … 41 37 } 42 38 39 public ComparisonFilterView() { 40 InitializeComponent(); 41 } 43 42 44 43 protected override void OnContentChanged() { 45 44 base.OnContentChanged(); 46 cbAttr.Items.Clear(); //cmbConstraintColumn.Items.Clear();47 cbFilterOperation.Items.Clear(); //cmbConstraintOperation.Items.Clear();45 cbAttr.Items.Clear(); 46 cbFilterOperation.Items.Clear(); 48 47 tbFilterData.Text = string.Empty; 49 48 if (Content != null) { … … 121 120 } 122 121 123 124 122 protected virtual void Content_ComparisonOperationChanged(object sender, EventArgs e) { 125 123 if (Content.ConstraintOperation != (ConstraintOperation)this.cbFilterOperation.SelectedItem) … … 178 176 errorProvider.Clear(); 179 177 } 180 181 178 } 182 179 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataCompletenessView.cs
r14462 r14996 24 24 using System.Drawing; 25 25 using System.Linq; 26 using System.Windows.Forms;27 26 using System.Windows.Forms.DataVisualization.Charting; 28 27 using HeuristicLab.Core.Views; … … 30 29 31 30 namespace HeuristicLab.DataPreprocessing.Views { 32 33 31 [View("Histogram View")] 34 32 [Content(typeof(DataCompletenessChartContent), true)] -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r14723 r14996 33 33 [Content(typeof(DataGridContent), true)] 34 34 public partial class DataGridContentView : StringConvertibleMatrixView { 35 36 35 private bool isSearching = false; 37 36 private bool updateOnMouseUp = false; … … 81 80 base.Sort(); 82 81 } 83 84 82 } 85 83 … … 141 139 } 142 140 } 143 144 141 145 142 protected override void PasteValuesToDataGridView() { -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs
r14903 r14996 36 36 [Content(typeof(PreprocessingContext), true)] 37 37 public partial class DataPreprocessingView : NamedItemView { 38 39 public DataPreprocessingView() {40 InitializeComponent();41 }42 43 38 public new PreprocessingContext Content { 44 39 get { return (PreprocessingContext)base.Content; } 45 40 set { base.Content = value; } 41 } 42 43 public DataPreprocessingView() { 44 InitializeComponent(); 46 45 } 47 46 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessorStarter.cs
r14185 r14996 29 29 namespace HeuristicLab.DataPreprocessing.Views { 30 30 public class DataPreprocessorStarter : IDataPreprocessorStarter { 31 32 31 public void Start(IDataAnalysisProblemData problemData, IContentView currentView) { 33 32 IAlgorithm algorithm; -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/FilterView.cs
r14185 r14996 32 32 [Content(typeof(FilterContent), true)] 33 33 public partial class FilterView : ItemView { 34 public new FilterContent Content { 35 get { return (FilterContent)base.Content; } 36 set { base.Content = value; } 37 } 34 38 35 39 public FilterView() { … … 45 49 checkedFilterView.Content.ItemsRemoved += Content_ItemsRemoved; 46 50 checkedFilterView.Content.CheckedItemsChanged += Content_CheckedItemsChanged; 47 }48 49 public new FilterContent Content {50 get { return (FilterContent)base.Content; }51 set { base.Content = value; }52 51 } 53 52 … … 122 121 } 123 122 } 124 125 123 } 126 124 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
r14993 r14996 28 28 [Content(typeof(HistogramContent), true)] 29 29 public partial class HistogramView : PreprocessingChartView { 30 31 30 public new HistogramContent Content { 32 31 get { return (HistogramContent)base.Content; } … … 44 43 protected override void OnContentChanged() { 45 44 base.OnContentChanged(); 46 classifierComboBox.Items.Clear();47 classifierComboBox.Items.Add("");45 groupingComboBox.Items.Clear(); 46 groupingComboBox.Items.Add(string.Empty); 48 47 49 48 if (Content != null) { 50 49 foreach (string var in PreprocessingChartContent.GetVariableNamesForGrouping(Content.PreprocessingData)) { 51 classifierComboBox.Items.Add(var);50 groupingComboBox.Items.Add(var); 52 51 } 53 52 54 classifierComboBox.SelectedItem = Content.GroupingVariableName;53 groupingComboBox.SelectedItem = Content.GroupingVariableName ?? string.Empty; 55 54 } 56 55 } … … 62 61 63 62 private void classifierComboBox_SelectedIndexChanged(object sender, EventArgs e) { 64 Content.GroupingVariableName = classifierComboBox.SelectedItem.ToString();63 Content.GroupingVariableName = groupingComboBox.SelectedItem.ToString(); 65 64 66 65 // rebuild datatables -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/LineChartView.cs
r14983 r14996 31 31 32 32 namespace HeuristicLab.DataPreprocessing.Views { 33 34 33 [View("Line Chart View")] 35 34 [Content(typeof(LineChartContent), true)] 36 35 public partial class LineChartView : PreprocessingChartView { 37 38 36 protected Dictionary<string, DataRow> allInOneDataRows; 39 37 protected DataTable allInOneDataTable; 40 38 protected DataTableView allInOneDataTableView; 39 40 public new LineChartContent Content { 41 get { return (LineChartContent)base.Content; } 42 set { base.Content = value; } 43 } 41 44 42 45 public LineChartView() { … … 46 49 allInOneDataRows = new Dictionary<string, DataRow>(); 47 50 allInOneDataTable = new DataTable(); 48 }49 50 public new LineChartContent Content {51 get { return (LineChartContent)base.Content; }52 set { base.Content = value; }53 51 } 54 52 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
r14185 r14996 31 31 32 32 namespace HeuristicLab.DataPreprocessing.Views { 33 34 33 [View("Manipulation Chart View")] 35 34 [Content(typeof(ManipulationContent), true)] 36 35 public partial class ManipulationView : ItemView { 37 38 36 private Action[] validators; 39 37 private Action[] manipulations; 38 39 public new ManipulationContent Content { 40 get { return (ManipulationContent)base.Content; } 41 set { base.Content = value; } 42 } 40 43 41 44 public ManipulationView() { … … 49 52 tabsPreview.SizeMode = TabSizeMode.Fixed; 50 53 51 validators = new Action[] { 52 () =>validateDeleteColumnsInfo(),53 () =>validateDeleteColumnsVariance(),54 () =>validateDeleteRowsInfo(),55 () =>validateReplaceWith(),56 () =>validateShuffle()54 validators = new Action[] { 55 () => ValidateDeleteColumnsInfo(), 56 () => ValidateDeleteColumnsVariance(), 57 () => ValidateDeleteRowsInfo(), 58 () => ValidateReplaceWith(), 59 () => ValidateShuffle() 57 60 }; 58 61 59 manipulations = new Action[] { 60 () =>Content.ManipulationLogic.DeleteColumnsWithMissingValuesGreater(getDeleteColumnsInfo()),61 () =>Content.ManipulationLogic.DeleteColumnsWithVarianceSmaller(getDeleteColumnsVariance()),62 () =>Content.ManipulationLogic.DeleteRowsWithMissingValuesGreater(getRowsColumnsInfo()),63 () =>replaceMissingValues(),64 () =>Content.ManipulationLogic.Shuffle(shuffleSeparatelyCheckbox.Checked)62 manipulations = new Action[] { 63 () => Content.ManipulationLogic.DeleteColumnsWithMissingValuesGreater(GetDeleteColumnsInfo()), 64 () => Content.ManipulationLogic.DeleteColumnsWithVarianceSmaller(GetDeleteColumnsVariance()), 65 () => Content.ManipulationLogic.DeleteRowsWithMissingValuesGreater(GetRowsColumnsInfo()), 66 () => ReplaceMissingValues(), 67 () => Content.ManipulationLogic.Shuffle(shuffleSeparatelyCheckbox.Checked) 65 68 }; 66 69 } … … 111 114 } 112 115 113 private double getDeleteColumnsInfo() {116 private double GetDeleteColumnsInfo() { 114 117 return double.Parse(txtDeleteColumnsInfo.Text); 115 118 } 116 119 117 private double getDeleteColumnsVariance() {120 private double GetDeleteColumnsVariance() { 118 121 return double.Parse(txtDeleteColumnsVariance.Text); 119 122 } 120 123 121 private double getRowsColumnsInfo() {124 private double GetRowsColumnsInfo() { 122 125 return double.Parse(txtDeleteRowsInfo.Text); 123 126 } 124 127 125 private void replaceMissingValues() {128 private void ReplaceMissingValues() { 126 129 var allIndices = Content.SearchLogic.GetMissingValueIndices(); 127 130 var columnIndex = cmbVariableNames.SelectedIndex; … … 149 152 } 150 153 151 private void validateDeleteColumnsInfo() {152 validateDoubleTextBox(txtDeleteColumnsInfo.Text);154 private void ValidateDeleteColumnsInfo() { 155 ValidateDoubleTextBox(txtDeleteColumnsInfo.Text); 153 156 if (btnApply.Enabled) { 154 var filteredColumns = Content.ManipulationLogic.ColumnsWithMissingValuesGreater( getDeleteColumnsInfo());157 var filteredColumns = Content.ManipulationLogic.ColumnsWithMissingValuesGreater(GetDeleteColumnsInfo()); 155 158 int count = filteredColumns.Count; 156 159 int columnCount = Content.FilterLogic.PreprocessingData.Columns; … … 180 183 } 181 184 182 private void validateDeleteColumnsVariance() {183 validateDoubleTextBox(txtDeleteColumnsVariance.Text);185 private void ValidateDeleteColumnsVariance() { 186 ValidateDoubleTextBox(txtDeleteColumnsVariance.Text); 184 187 if (btnApply.Enabled) { 185 var filteredColumns = Content.ManipulationLogic.ColumnsWithVarianceSmaller( getDeleteColumnsVariance());188 var filteredColumns = Content.ManipulationLogic.ColumnsWithVarianceSmaller(GetDeleteColumnsVariance()); 186 189 int count = filteredColumns.Count; 187 190 int columnCount = Content.FilterLogic.PreprocessingData.Columns; … … 211 214 } 212 215 213 private void validateDeleteRowsInfo() {214 validateDoubleTextBox(txtDeleteRowsInfo.Text);216 private void ValidateDeleteRowsInfo() { 217 ValidateDoubleTextBox(txtDeleteRowsInfo.Text); 215 218 if (btnApply.Enabled) { 216 int count = Content.ManipulationLogic.RowsWithMissingValuesGreater( getRowsColumnsInfo()).Count;219 int count = Content.ManipulationLogic.RowsWithMissingValuesGreater(GetRowsColumnsInfo()).Count; 217 220 int rowCount = Content.FilterLogic.PreprocessingData.Rows; 218 221 lblPreviewRowsInfo.Text = count + " row" + (count > 1 || count == 0 ? "s" : "") + " of " + rowCount + " (" + string.Format("{0:F2}%", 100d / rowCount * count) + ") were detected with more than " + txtDeleteRowsInfo.Text + "% missing values."; … … 227 230 } 228 231 229 private void validateReplaceWith() {232 private void ValidateReplaceWith() { 230 233 btnApply.Enabled = false; 231 234 string replaceWith = (string)cmbReplaceWith.SelectedItem; … … 260 263 } 261 264 262 private void validateShuffle() {265 private void ValidateShuffle() { 263 266 btnApply.Enabled = true; 264 267 lblShuffleProperties.Enabled = false; … … 268 271 } 269 272 270 public new ManipulationContent Content {271 get { return (ManipulationContent)base.Content; }272 set { base.Content = value; }273 }274 275 273 private void lstMethods_SelectedIndexChanged(object sender, System.EventArgs e) { 276 274 int index = lstMethods.SelectedIndex; … … 308 306 } 309 307 310 private void validateDoubleTextBox(String text) {308 private void ValidateDoubleTextBox(String text) { 311 309 btnApply.Enabled = false; 312 310 if (!string.IsNullOrEmpty(text)) { … … 319 317 320 318 private void txtDeleteColumnsInfo_TextChanged(object sender, EventArgs e) { 321 validateDeleteColumnsInfo();319 ValidateDeleteColumnsInfo(); 322 320 } 323 321 324 322 private void txtDeleteColumnsVariance_TextChanged(object sender, EventArgs e) { 325 validateDeleteColumnsVariance();323 ValidateDeleteColumnsVariance(); 326 324 } 327 325 328 326 private void txtDeleteRowsInfo_TextChanged(object sender, EventArgs e) { 329 validateDeleteRowsInfo();327 ValidateDeleteRowsInfo(); 330 328 } 331 329 … … 334 332 lblValueColon.Visible = isReplaceWithValueSelected; 335 333 txtReplaceValue.Visible = isReplaceWithValueSelected; 336 validateReplaceWith();334 ValidateReplaceWith(); 337 335 } 338 336 339 337 private void txtReplaceValue_TextChanged(object sender, EventArgs e) { 340 validateReplaceWith();338 ValidateReplaceWith(); 341 339 } 342 340 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs
r14983 r14996 47 47 }; 48 48 49 50 49 public PreprocessingChartView() { 51 50 InitializeComponent(); … … 89 88 base.CheckedItemsChanged(sender, checkedItems); 90 89 91 foreach (IndexedItem<StringValue> item in checkedItems.Items) {92 string variableName = item.Value.Value;93 94 if (!IsVariableChecked(variableName)) {95 // not checked -> remove96 //dataTableView.SetRowEnabled(variableName, false);97 //dataTablePerVariable.Remove(dataTablePerVariable.Find(x => (x.Name == variableName)));98 } else {99 // checked -> add100 //DataRow row = GetDataRow(variableName);101 //dataTableView.SetRowEnabled(variableName, true);102 103 //var pdt = new DataTable(variableName);104 //pdt.VisualProperties.Title = string.Empty;105 //pdt.Rows.Add(row);106 // dataTablePerVariable does not contain unchecked variables => reduce insert position by number of uncheckt variables to correct the index107 //int uncheckedUntilVariable = checkedItemList.Content.TakeWhile(x => x.Value != variableName).Count(x => !checkedItemList.Content.ItemChecked(x));108 //dataTables.Insert(item.Index - uncheckedUntilVariable, pdt);109 }110 }111 112 // update chart if not in all in one mode113 //if (Content != null && !Content.AllInOneMode)114 //GenerateChart();??115 90 GenerateLayout(); 116 91 } … … 153 128 #region Generate Layout 154 129 protected void GenerateLayout() { 155 if ( suppressCheckedChangedUpdate)130 if (SuppressCheckedChangedUpdate) 156 131 return; 157 132 … … 192 167 193 168 private void AddDataTableToTableLayout(DataTableView dataTable, int row, int col) { 194 //dataView.Classification = Classification;195 //dataView.IsDetailedChartViewEnabled = IsDetailedChartViewEnabled;196 197 169 if (dataTable == null) { 198 170 // dummy panel for empty field -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingCheckedVariablesView.cs
r14917 r14996 33 33 [Content(typeof(PreprocessingChartContent), false)] 34 34 public partial class PreprocessingCheckedVariablesView : ItemView { 35 36 protected bool suppressCheckedChangedUpdate = false; 35 protected bool SuppressCheckedChangedUpdate = false; 37 36 38 37 public new PreprocessingChartContent Content { … … 122 121 Content.VariableItemList.Remove(stringValue); 123 122 } 124 protected virtual void UpdateVariable(string name) { 125 } 126 protected virtual void ResetAllVariables() { 127 } 128 129 protected virtual void CheckedChangedUpdate() { 130 131 } 123 protected virtual void UpdateVariable(string name) { } 124 protected virtual void ResetAllVariables() { } 125 protected virtual void CheckedChangedUpdate() { } 132 126 133 127 private void checkInputsTargetButton_Click(object sender, System.EventArgs e) { 134 suppressCheckedChangedUpdate = true;128 SuppressCheckedChangedUpdate = true; 135 129 foreach (var name in Content.VariableItemList) { 136 130 var isInputTarget = Content.PreprocessingData.InputVariables.Contains(name.Value) || Content.PreprocessingData.TargetVariable == name.Value; 137 131 Content.VariableItemList.SetItemCheckedState(name, isInputTarget); 138 132 } 139 suppressCheckedChangedUpdate = false;133 SuppressCheckedChangedUpdate = false; 140 134 CheckedChangedUpdate(); 141 135 } 142 136 143 137 private void checkAllButton_Click(object sender, System.EventArgs e) { 144 suppressCheckedChangedUpdate = true;138 SuppressCheckedChangedUpdate = true; 145 139 foreach (var name in Content.VariableItemList) { 146 140 Content.VariableItemList.SetItemCheckedState(name, true); 147 141 } 148 suppressCheckedChangedUpdate = false;142 SuppressCheckedChangedUpdate = false; 149 143 CheckedChangedUpdate(); 150 144 } 151 145 152 146 private void uncheckAllButton_Click(object sender, System.EventArgs e) { 153 suppressCheckedChangedUpdate = true;147 SuppressCheckedChangedUpdate = true; 154 148 foreach (var name in Content.VariableItemList) { 155 149 Content.VariableItemList.SetItemCheckedState(name, false); 156 150 } 157 suppressCheckedChangedUpdate = false;151 SuppressCheckedChangedUpdate = false; 158 152 CheckedChangedUpdate(); 159 153 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingFeatureCorrelationView.cs
r14994 r14996 30 30 [Content(typeof(CorrelationMatrixContent), true)] 31 31 public partial class PreprocessingFeatureCorrelationView : AsynchronousContentView { 32 33 32 public new CorrelationMatrixContent Content { 34 33 get { return (CorrelationMatrixContent)base.Content; } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/RenameColumnsDialog.cs
r14185 r14996 26 26 namespace HeuristicLab.DataPreprocessing.Views { 27 27 public partial class RenameColumnsDialog : Form { 28 29 28 public IList<string> ColumnNames { 30 29 get { -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotMultiView.cs
r14993 r14996 42 42 private readonly IDictionary<Tuple<string/*col*/, string/*row*/>, Control> bodyCache = new Dictionary<Tuple<string, string>, Control>(); 43 43 44 public new MultiScatterPlotContent Content { 45 get { return (MultiScatterPlotContent)base.Content; } 46 set { base.Content = value; } 47 } 48 44 49 public ScatterPlotMultiView() { 45 50 InitializeComponent(); … … 78 83 } 79 84 80 public new MultiScatterPlotContent Content {81 get { return (MultiScatterPlotContent)base.Content; }82 set { base.Content = value; }83 }84 85 85 protected override void OnContentChanged() { 86 86 base.OnContentChanged(); 87 87 if (Content != null) { 88 groupingComboBox.Items.Add( "");88 groupingComboBox.Items.Add(string.Empty); 89 89 foreach (string var in PreprocessingChartContent.GetVariableNamesForGrouping(Content.PreprocessingData)) { 90 90 groupingComboBox.Items.Add(var); 91 91 } 92 groupingComboBox.SelectedItem = Content.GroupingVariable ;92 groupingComboBox.SelectedItem = Content.GroupingVariable ?? string.Empty; 93 93 94 94 // uncheck variables that max 20 vars are selected initially … … 100 100 numChecked, numChecked * numChecked); 101 101 if (MessageBox.Show(this, message, "Reduce befor continue?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { 102 suppressCheckedChangedUpdate = true;102 SuppressCheckedChangedUpdate = true; 103 103 foreach (var var in list.CheckedItems.Reverse().Take(numChecked - 20)) { 104 104 Content.VariableItemList.SetItemCheckedState(var.Value, false); 105 105 } 106 suppressCheckedChangedUpdate = false;106 SuppressCheckedChangedUpdate = false; 107 107 } 108 108 } … … 123 123 protected override void CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<StringValue>> checkedItems) { 124 124 base.CheckedItemsChanged(sender, checkedItems); 125 if ( suppressCheckedChangedUpdate) return;125 if (SuppressCheckedChangedUpdate) return; 126 126 127 127 foreach (var variable in checkedItems.Items) { … … 207 207 // hide controls 208 208 for (int r = 0; r < tlp.RowCount; r++) { 209 //tlp.Controls.Remove(tlp.GetControlFromPosition(idx, r));210 209 var control = tlp.GetControlFromPosition(idx, r); 211 210 if (control != null) … … 217 216 // hide controls 218 217 for (int c = 0; c < tlp.ColumnCount; c++) { 219 //tlp.Controls.Remove(tlp.GetControlFromPosition(c, idx));220 218 var control = tlp.GetControlFromPosition(c, idx); 221 219 if (control != null) … … 426 424 Dock = DockStyle.Fill, 427 425 ShowName = false 428 //ShowLegend = false,429 //XAxisFormat = "G3"430 426 }; 431 //pcv.ChartDoubleClick += HistogramDoubleClick; 427 //pcv.ChartDoubleClick += HistogramDoubleClick; // ToDo: not working; double click is already handled by the chart 432 428 bodyCache.Add(key, pcv); 433 429 } else { //scatter plot … … 473 469 #region Generate Charts 474 470 private void GenerateCharts(bool clearCache) { 475 if (Content == null || suppressCheckedChangedUpdate) return;471 if (Content == null || SuppressCheckedChangedUpdate) return; 476 472 477 473 // Clear old layouts and cache -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotSingleView.cs
r14993 r14996 28 28 using HeuristicLab.Core.Views; 29 29 using HeuristicLab.MainForm; 30 using HeuristicLab.MainForm.WindowsForms;31 30 using RegressionType = HeuristicLab.Analysis.ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType; 32 31 … … 78 77 comboBoxGroup.Items.Add(var); 79 78 } 80 comboBoxGroup.SelectedItem = Content.GroupingVariable ;79 comboBoxGroup.SelectedItem = Content.GroupingVariable ?? NoGroupItem; 81 80 82 81 // use x and y variable from content -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/SearchAndReplaceDialog.cs
r14185 r14996 43 43 44 44 public partial class SearchAndReplaceDialog : Form { 45 private st ring[] cmbItemsText = { "Value", "Average", "Median", "Random", "Most Common", "Interpolation" };46 private st ring[] cmbComparisonOperatorText = { "==", "<", "<=", ">", ">=", "!=" };45 private static readonly string[] ItemsText = { "Value", "Average", "Median", "Random", "Most Common", "Interpolation" }; 46 private static readonly string[] ComparisonOperatorText = { "==", "<", "<=", ">", ">=", "!=" }; 47 47 48 48 public SearchAndReplaceDialog() { 49 49 InitializeComponent(); 50 cmbReplaceWith.Items.AddRange( cmbItemsText);50 cmbReplaceWith.Items.AddRange(ItemsText); 51 51 cmbReplaceWith.SelectedIndex = (int)ReplaceAction.Value; 52 cmbComparisonOperator.Items.AddRange( cmbComparisonOperatorText);52 cmbComparisonOperator.Items.AddRange(ComparisonOperatorText); 53 53 cmbComparisonOperator.SelectedIndex = (int)ComparisonOperation.Equal; 54 54 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.cs
r14915 r14996 31 31 32 32 namespace HeuristicLab.DataPreprocessing.Views { 33 34 33 [View("Statistics View")] 35 34 [Content(typeof(StatisticsContent), true)] 36 35 public partial class StatisticsView : ItemView { 37 38 36 private bool horizontal = true; 39 40 37 private StringMatrix statisticsMatrix; 41 42 38 private static readonly string[] StatisticsNames = new[] { 43 39 "Type", -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/TransformationView.cs
r14185 r14996 28 28 29 29 namespace HeuristicLab.DataPreprocessing.Views { 30 31 30 [View("Transformation View")] 32 31 [Content(typeof(TransformationContent), true)] 33 32 public partial class TransformationView : AsynchronousContentView { 34 35 33 public new TransformationContent Content { 36 34 get { return (TransformationContent)base.Content; } … … 52 50 } 53 51 54 /// <summary>55 /// Adds eventhandlers to the current instance.56 /// </summary>57 52 protected override void RegisterContentEvents() { 58 53 Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged; 59 54 } 60 55 61 /// <summary>62 /// Removes the eventhandlers from the current instance.63 /// </summary>64 56 protected override void DeregisterContentEvents() { 65 57 Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged; -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/Utils/FindPreprocessingItemsIterator.cs
r14185 r14996 26 26 namespace HeuristicLab.DataPreprocessing.Views { 27 27 class FindPreprocessingItemsIterator : IFindPreprocessingItemsIterator { 28 29 28 private IDictionary<int, IList<int>> items; 30 29 private Tuple<int, int> currentCell; … … 32 31 public FindPreprocessingItemsIterator(IDictionary<int, IList<int>> items) { 33 32 this.items = items; 34 Reset(); 33 Reset(); 35 34 } 36 35 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ViewShortcutListView.cs
r14470 r14996 29 29 [Content(typeof(IItemList<IViewShortcut>), true)] 30 30 public partial class ViewShortcutListView : ItemListView<IViewShortcut> { 31 32 31 public ViewShortcutListView() { 33 32 InitializeComponent(); -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/CorrelationMatrixContent.cs
r14994 r14996 32 32 } 33 33 34 p rivate PreprocessingContext Context { get;set; }34 public PreprocessingContext Context { get; private set; } 35 35 public ITransactionalPreprocessingData PreprocessingData { 36 36 get { return Context.Data; } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/DataCompletenessChartContent.cs
r14903 r14996 32 32 } 33 33 34 //public DataGridLogic DataGridLogic { get; private set; }35 34 public SearchLogic SearchLogic { get; private set; } 36 35 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/DataGridContent.cs
r14903 r14996 32 32 [Item("Data Grid", "Represents a data grid.")] 33 33 public class DataGridContent : Item, IStringConvertibleMatrix, IViewShortcut { 34 35 public ITransactionalPreprocessingData PreProcessingData { get; private set; }36 37 34 public static new Image StaticItemImage { 38 35 get { return HeuristicLab.Common.Resources.VSImageLibrary.Table; } 39 36 } 37 38 public ITransactionalPreprocessingData PreProcessingData { get; private set; } 40 39 41 40 public ManipulationLogic ManipulationLogic { get; private set; } … … 43 42 44 43 public int Rows { 45 get { 46 return PreProcessingData.Rows; 47 } 48 set { 49 //does nothing 50 } 44 get { return PreProcessingData.Rows; } 45 set { } 51 46 } 52 47 53 48 public int Columns { 54 get { 55 return PreProcessingData.Columns; 56 } 57 set { 58 //does nothing 59 } 49 get { return PreProcessingData.Columns; } 50 set { } 60 51 } 61 52 62 53 public IEnumerable<string> ColumnNames { 63 get { 64 return PreProcessingData.VariableNames; 65 } 66 set { 67 68 } 54 get { return PreProcessingData.VariableNames; } 55 set { } 69 56 } 70 57 71 58 public IEnumerable<string> RowNames { 72 get { 73 return Enumerable.Range(1, Rows).Select(n => n.ToString()); 74 } 75 set { 76 throw new NotSupportedException(); 77 } 59 get { return Enumerable.Range(1, Rows).Select(n => n.ToString()); } 60 set { throw new NotSupportedException(); } 78 61 } 79 62 80 63 public bool SortableView { 81 get { 82 return true; 83 } 84 set { 85 throw new NotSupportedException(); 86 } 64 get { return true; } 65 set { throw new NotSupportedException(); } 87 66 } 88 67 … … 91 70 } 92 71 93 94 72 public IDictionary<int, IList<int>> Selection { 95 73 get { return PreProcessingData.Selection; } 96 74 set { PreProcessingData.Selection = value; } 97 75 } 98 99 76 100 77 public DataGridContent(ITransactionalPreprocessingData preProcessingData, ManipulationLogic theManipulationLogic, FilterLogic theFilterLogic) { … … 137 114 } 138 115 139 140 116 #region unused stuff/not implemented but necessary due to IStringConvertibleMatrix 141 117 #pragma warning disable 0067 … … 154 130 public event EventHandler<EventArgs<int, int>> ItemChanged; 155 131 public event EventHandler Reset; 156 157 132 #pragma warning restore 0067 158 133 #endregion 159 160 134 } 161 135 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/FilterContent.cs
r14185 r14996 28 28 [Item("Filter", "Represents the filter grid.")] 29 29 public class FilterContent : Item, IViewShortcut { 30 31 30 public static new Image StaticItemImage { 32 31 get { return HeuristicLab.Common.Resources.VSImageLibrary.Filter; } 33 32 } 34 33 35 private ICheckedItemCollection<IFilter> filters = new CheckedItemCollection<IFilter>();36 37 34 public FilterLogic FilterLogic { get; private set; } 38 35 39 public ICheckedItemCollection<IFilter> Filters { 40 get { 41 return this.filters; 42 } 43 set { 44 this.filters = value; 45 } 46 } 36 public ICheckedItemCollection<IFilter> Filters { get; private set; } 47 37 48 private bool isAndCombination = true; 49 public bool IsAndCombination { 50 get { 51 return this.isAndCombination; 52 } 53 set { 54 this.isAndCombination = value; 55 } 56 } 38 public bool IsAndCombination { get; set; } 57 39 58 40 public FilterContent(FilterLogic filterLogic) { 41 Filters = new CheckedItemCollection<IFilter>(); 42 IsAndCombination = true; 59 43 FilterLogic = filterLogic; 60 44 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/LineChartContent.cs
r14903 r14996 28 28 [Item("Line Chart", "Represents the line chart grid.")] 29 29 public class LineChartContent : PreprocessingChartContent { 30 31 private bool allInOneMode = true; 32 public bool AllInOneMode { 33 get { return this.allInOneMode; } 34 set { this.allInOneMode = value; } 35 } 30 public bool AllInOneMode { get; set; } 36 31 37 32 public static new Image StaticItemImage { … … 41 36 public LineChartContent(IFilteredPreprocessingData preprocessingData) 42 37 : base(preprocessingData) { 38 AllInOneMode = true; 43 39 } 44 40 45 41 public LineChartContent(LineChartContent content, Cloner cloner) 46 42 : base(content, cloner) { 47 this. allInOneMode = content.allInOneMode;43 this.AllInOneMode = content.AllInOneMode; 48 44 } 49 45 public override IDeepCloneable Clone(Cloner cloner) { -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/ManipulationContent.cs
r14185 r14996 28 28 [Item("Manipulation", "Represents the available manipulations on a data set.")] 29 29 public class ManipulationContent : Item, IViewShortcut { 30 31 private ManipulationLogic manipulationLogic;32 private SearchLogic searchLogic;33 private FilterLogic filterLogic;34 35 public ManipulationLogic ManipulationLogic { get { return manipulationLogic; } }36 public SearchLogic SearchLogic { get { return searchLogic; } }37 public FilterLogic FilterLogic { get { return filterLogic; } }38 39 30 public static new Image StaticItemImage { 40 31 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; } 41 32 } 42 33 43 public ManipulationContent(ManipulationLogic theManipulationLogic, SearchLogic theSearchLogic, FilterLogic theFilterLogic) { 44 manipulationLogic = theManipulationLogic; 45 searchLogic = theSearchLogic; 46 filterLogic = theFilterLogic; 34 public ManipulationLogic ManipulationLogic { get; private set; } 35 public SearchLogic SearchLogic { get; private set; } 36 public FilterLogic FilterLogic { get; private set; } 37 38 public ManipulationContent(ManipulationLogic manipulationLogic, SearchLogic searchLogic, FilterLogic filterLogic) { 39 ManipulationLogic = manipulationLogic; 40 SearchLogic = searchLogic; 41 FilterLogic = filterLogic; 47 42 } 48 43 … … 52 47 return new ManipulationContent(this, cloner); 53 48 } 54 55 56 49 } 57 50 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/MultiScatterPlotContent.cs
r14903 r14996 28 28 [Item("Multi Scatter Plot", "Represents a multi scatter plot.")] 29 29 public class MultiScatterPlotContent : ScatterPlotContent { 30 public static new Image StaticItemImage { 31 get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; } 32 } 30 33 31 34 public MultiScatterPlotContent(IFilteredPreprocessingData preprocessingData) … … 37 40 } 38 41 39 public static new Image StaticItemImage {40 get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; }41 }42 43 42 public override IDeepCloneable Clone(Cloner cloner) { 44 43 return new MultiScatterPlotContent(this, cloner); -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/PreprocessingChartContent.cs
r14993 r14996 33 33 [Item("PreprocessingChart", "Represents a preprocessing chart.")] 34 34 public class PreprocessingChartContent : Item, IViewShortcut { 35 36 35 public enum LegendOrder { 37 36 Appearance, -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs
r14993 r14996 105 105 return scatterPlot; 106 106 } 107 108 107 } 109 108 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/SingleScatterPlotContent.cs
r14903 r14996 28 28 [Item("Scatter Plot", "Represents a scatter plot.")] 29 29 public class SingleScatterPlotContent : ScatterPlotContent { 30 public static new Image StaticItemImage { 31 get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; } 32 } 30 33 31 34 public string SelectedXVariable { get; set; } … … 43 46 } 44 47 45 public static new Image StaticItemImage {46 get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; }47 }48 49 48 public override IDeepCloneable Clone(Cloner cloner) { 50 49 return new SingleScatterPlotContent(this, cloner); -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/StatisticsContent.cs
r14545 r14996 27 27 [Item("Statistics", "Represents the statistics grid.")] 28 28 public class StatisticsContent : Item, IViewShortcut { 29 public static new Image StaticItemImage { 30 get { return HeuristicLab.Common.Resources.VSImageLibrary.Object; } 31 } 32 29 33 public ITransactionalPreprocessingData PreprocessingData { get; private set; } 34 public StatisticsLogic StatisticsLogic { get; private set; } 30 35 31 private readonly StatisticsLogic statisticsLogic; 32 public StatisticsContent(ITransactionalPreprocessingData preProcessingData, StatisticsLogic theStatisticsLogic) { 36 public StatisticsContent(ITransactionalPreprocessingData preProcessingData, StatisticsLogic statisticsLogic) { 33 37 PreprocessingData = preProcessingData; 34 statisticsLogic = theStatisticsLogic;38 StatisticsLogic = statisticsLogic; 35 39 } 36 40 37 41 public StatisticsContent(StatisticsContent content, Cloner cloner) 38 42 : base(content, cloner) { 39 40 }41 42 public StatisticsLogic StatisticsLogic {43 get { return statisticsLogic; }44 }45 46 public static new Image StaticItemImage {47 get { return HeuristicLab.Common.Resources.VSImageLibrary.Object; }48 43 } 49 44 … … 53 48 54 49 public event DataPreprocessingChangedEventHandler Changed { 55 add { statisticsLogic.Changed += value; }56 remove { statisticsLogic.Changed -= value; }50 add { StatisticsLogic.Changed += value; } 51 remove { StatisticsLogic.Changed -= value; } 57 52 } 58 59 53 } 60 54 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/TransformationContent.cs
r14185 r14996 28 28 [Item("Transformation", "Represents the transformation grid.")] 29 29 public class TransformationContent : Item, IViewShortcut { 30 public static new Image StaticItemImage { 31 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; } 32 } 30 33 31 34 public IPreprocessingData Data { get; private set; } … … 33 36 34 37 public ICheckedItemList<ITransformation> CheckedTransformationList { get; private set; } 35 36 public static new Image StaticItemImage {37 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; }38 }39 38 40 39 public TransformationContent(IPreprocessingData data, FilterLogic filterLogic) { -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Data/FilteredPreprocessingData.cs
r14381 r14996 271 271 272 272 #region IPreprocessingData Members 273 274 273 public bool Validate(string value, out string errorMessage, int columnIndex) { 275 274 return originalData.Validate(value, out errorMessage, columnIndex); -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Data/IPreprocessingData.cs
r14381 r14996 27 27 28 28 namespace HeuristicLab.DataPreprocessing { 29 30 29 public interface IPreprocessingData : INamedItem { 31 30 T GetCell<T>(int columnIndex, int rowIndex); -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Data/ITransactionalPreprocessingData.cs
r14185 r14996 24 24 namespace HeuristicLab.DataPreprocessing { 25 25 public interface ITransactionalPreprocessingData : IPreprocessingData { 26 27 26 event DataPreprocessingChangedEventHandler Changed; 28 27 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
r14381 r14996 33 33 [Item("PreprocessingData", "Represents data used for preprocessing.")] 34 34 public abstract class PreprocessingData : NamedItem, IPreprocessingData { 35 36 35 public IntRange TrainingPartition { get; set; } 37 36 public IntRange TestPartition { get; set; } 38 37 39 protected IList<ITransformation> transformations; 40 public IList<ITransformation> Transformations { 41 get { return transformations; } 42 } 38 public IList<ITransformation> Transformations { get; protected set; } 43 39 44 40 protected IList<IList> variableValues; … … 85 81 TrainingPartition = (IntRange)original.TrainingPartition.Clone(cloner); 86 82 TestPartition = (IntRange)original.TestPartition.Clone(cloner); 87 transformations = new List<ITransformation>(original.transformations.Select(cloner.Clone));83 Transformations = new List<ITransformation>(original.Transformations.Select(cloner.Clone)); 88 84 89 85 InputVariables = new List<string>(original.InputVariables); … … 97 93 Name = "Preprocessing Data"; 98 94 99 transformations = new List<ITransformation>();95 Transformations = new List<ITransformation>(); 100 96 selection = new Dictionary<int, IList<int>>(); 101 97 … … 166 162 167 163 #region IPreprocessingData Members 168 169 164 public abstract T GetCell<T>(int columnIndex, int rowIndex); 170 165 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Data/TransactionalPreprocessingData.cs
r14185 r14996 33 33 [Item("PreprocessingData", "Represents data used for preprocessing.")] 34 34 public class TransactionalPreprocessingData : PreprocessingData, ITransactionalPreprocessingData { 35 36 35 private class Snapshot { 37 36 public IList<IList> VariableValues { get; set; } … … 70 69 TrainingPartition = new IntRange(TrainingPartition.Start, TrainingPartition.End), 71 70 TestPartition = new IntRange(TestPartition.Start, TestPartition.End), 72 Transformations = new List<ITransformation>( transformations),71 Transformations = new List<ITransformation>(Transformations), 73 72 ChangedType = changedType, 74 73 ChangedColumn = column, … … 83 82 84 83 #region NamedItem abstract Member Implementations 85 86 84 public override IDeepCloneable Clone(Cloner cloner) { 87 85 return new TransactionalPreprocessingData(this, cloner); 88 86 } 89 90 87 #endregion 91 88 92 89 #region Overridden IPreprocessingData Members 93 94 90 public override T GetCell<T>(int columnIndex, int rowIndex) { 95 91 return (T)variableValues[columnIndex][rowIndex]; … … 216 212 } 217 213 218 219 214 public override void InsertRow(int rowIndex) { 220 215 SaveSnapshot(DataPreprocessingChangedEventType.DeleteRow, -1, rowIndex); … … 346 341 347 342 #region TransactionalPreprocessingData members 348 349 343 public bool IsUndoAvailable { 350 344 get { return undoHistory.Count > 0; } … … 358 352 TrainingPartition = previousSnapshot.TrainingPartition; 359 353 TestPartition = previousSnapshot.TestPartition; 360 transformations = previousSnapshot.Transformations;354 Transformations = previousSnapshot.Transformations; 361 355 undoHistory.Remove(previousSnapshot); 362 356 OnChanged(previousSnapshot.ChangedType, … … 384 378 OnChanged(@event, -1, -1); 385 379 } 386 387 380 #endregion 388 381 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Logic/Filter/ComparisonFilter.cs
r14185 r14996 30 30 [Item("ComparisonFilter", "A filter which compares the member of the preprocessing data with the constraint data.")] 31 31 public class ComparisonFilter : ComparisonConstraint, IFilter { 32 33 32 public override string ItemName { 34 33 get { return "ComparisonFilter"; } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Logic/FilterLogic.cs
r14185 r14996 27 27 namespace HeuristicLab.DataPreprocessing { 28 28 public class FilterLogic { 29 30 29 public IFilteredPreprocessingData PreprocessingData { get; private set; } 31 30 32 31 public bool IsFiltered { 33 get { 34 return PreprocessingData.IsFiltered; 35 } 32 get { return PreprocessingData.IsFiltered; } 36 33 } 37 34 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Logic/ManipulationLogic.cs
r14185 r14996 39 39 } 40 40 41 public ManipulationLogic(ITransactionalPreprocessingData _prepocessingData, SearchLogic theSearchLogic, StatisticsLogic theStatisticsLogic) {42 preprocessingData = _prepocessingData;41 public ManipulationLogic(ITransactionalPreprocessingData preprocessingData, SearchLogic theSearchLogic, StatisticsLogic theStatisticsLogic) { 42 this.preprocessingData = preprocessingData; 43 43 searchLogic = theSearchLogic; 44 44 statisticsLogic = theStatisticsLogic; … … 108 108 preprocessingData.InTransaction(() => { 109 109 foreach (var column in cells) { 110 int countValues = 0;111 if (preprocessingData.VariableHasType<double>(column.Key)) {112 countValues = preprocessingData.GetValues<double>(column.Key).Count();113 } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {114 countValues = preprocessingData.GetValues<DateTime>(column.Key).Count();115 }116 117 110 IList<Tuple<int, int>> startEndings = GetStartAndEndingsForInterpolation(column); 118 111 foreach (var tuple in startEndings) { … … 266 259 for (int i = 0; i < preprocessingData.Columns; ++i) { 267 260 if (preprocessingData.VariableHasType<double>(i)) { 268 reOrderToIndices<double>(i, indices);261 ReOrderToIndices<double>(i, indices); 269 262 } else if (preprocessingData.VariableHasType<string>(i)) { 270 reOrderToIndices<string>(i, indices);263 ReOrderToIndices<string>(i, indices); 271 264 } else if (preprocessingData.VariableHasType<DateTime>(i)) { 272 reOrderToIndices<DateTime>(i, indices);265 ReOrderToIndices<DateTime>(i, indices); 273 266 } 274 267 } … … 290 283 } 291 284 292 private void reOrderToIndices<T>(int columnIndex, IList<Tuple<int, int>> indices) { 293 285 private void ReOrderToIndices<T>(int columnIndex, IList<Tuple<int, int>> indices) { 294 286 List<T> originalData = new List<T>(preprocessingData.GetValues<T>(columnIndex)); 295 287 … … 330 322 331 323 public List<int> RowsWithMissingValuesGreater(double percent) { 332 333 324 List<int> rows = new List<int>(); 334 325 … … 344 335 345 336 public List<int> ColumnsWithMissingValuesGreater(double percent) { 346 347 337 List<int> columns = new List<int>(); 348 338 for (int i = 0; i < preprocessingData.Columns; ++i) { … … 357 347 358 348 public List<int> ColumnsWithVarianceSmaller(double variance) { 359 360 349 List<int> columns = new List<int>(); 361 350 for (int i = 0; i < preprocessingData.Columns; ++i) { … … 401 390 }); 402 391 } 403 404 392 } 405 393 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Logic/StatisticsLogic.cs
r14185 r14996 27 27 namespace HeuristicLab.DataPreprocessing { 28 28 public class StatisticsLogic { 29 30 29 private readonly ITransactionalPreprocessingData preprocessingData; 31 30 private readonly SearchLogic searchLogic; -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/PreprocessingContext.cs
r14332 r14996 32 32 [StorableClass] 33 33 public class PreprocessingContext : NamedItem, IStorableContent { 34 35 34 public string Filename { get; set; } 36 35 -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs
r14185 r14996 28 28 namespace HeuristicLab.DataPreprocessing { 29 29 public class ProblemDataCreator { 30 31 30 private readonly PreprocessingContext context; 32 31 33 32 private Dataset ExportedDataset { 34 get { 35 return context.Data.ExportToDataset(); 36 } 33 get { return context.Data.ExportToDataset(); } 37 34 } 38 35 39 private IList<ITransformation> Transformations { get { return context.Data.Transformations; } } 36 private IList<ITransformation> Transformations { 37 get { return context.Data.Transformations; } 38 } 40 39 41 40 public ProblemDataCreator(PreprocessingContext context) {
Note: See TracChangeset
for help on using the changeset viewer.