Changeset 10786 for branches/DataPreprocessing
- Timestamp:
- 04/23/14 15:56:31 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 1 added
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CheckedTransformationCollectionView.cs
r10778 r10786 52 52 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { 53 53 try { 54 var columNames = new[] { "dummy", "target" }.AsEnumerable(); 55 return (ITransformation)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(new[] { columNames }); 54 // TODO: 55 var columnNames = Enumerable.Range(0, 10).Select(i => "x" + i); 56 //var columnNames = new[] { "dummy", "target" }.AsEnumerable(); 57 return (ITransformation)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(new[] { columnNames }); 56 58 } catch (Exception ex) { 57 59 ErrorHandling.ShowErrorDialog(this, ex); -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/TransformationView.Designer.cs
r10778 r10786 47 47 /// </summary> 48 48 private void InitializeComponent() { 49 components = new System.ComponentModel.Container(); 50 this.transformationCollectionView = new CheckedTransformationCollectionView(); 49 this.transformationCollectionView = new HeuristicLab.DataPreprocessing.Views.CheckedTransformationCollectionView(); 50 this.applyButton = new System.Windows.Forms.Button(); 51 this.SuspendLayout(); 52 // 51 53 // transformationCollectionView 52 54 // 55 this.transformationCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 56 | System.Windows.Forms.AnchorStyles.Left) 57 | System.Windows.Forms.AnchorStyles.Right))); 53 58 this.transformationCollectionView.Caption = "Transformations"; 54 59 this.transformationCollectionView.Content = null; 55 this.transformationCollectionView.Dock = System.Windows.Forms.DockStyle.Fill;56 60 this.transformationCollectionView.Location = new System.Drawing.Point(0, 0); 57 61 this.transformationCollectionView.Name = "transformationCollectionView"; 58 this.transformationCollectionView.Size = new System.Drawing.Size(627, 528); 62 this.transformationCollectionView.ReadOnly = false; 63 this.transformationCollectionView.ShowDetails = true; 64 this.transformationCollectionView.Size = new System.Drawing.Size(627, 482); 59 65 this.transformationCollectionView.TabIndex = 0; 66 // 67 // applyButton 68 // 69 this.applyButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 70 this.applyButton.Location = new System.Drawing.Point(490, 488); 71 this.applyButton.Name = "applyButton"; 72 this.applyButton.Size = new System.Drawing.Size(134, 23); 73 this.applyButton.TabIndex = 1; 74 this.applyButton.Text = "Apply Transformations"; 75 this.applyButton.UseVisualStyleBackColor = true; 76 this.applyButton.Click += new System.EventHandler(this.applyButton_Click); 60 77 // 61 78 // TransformationView … … 63 80 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 64 81 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 82 this.Controls.Add(this.applyButton); 65 83 this.Controls.Add(this.transformationCollectionView); 66 84 this.Name = "TransformationView"; 67 this.Size = new System.Drawing.Size(627, 5 28);85 this.Size = new System.Drawing.Size(627, 514); 68 86 this.ResumeLayout(false); 69 87 … … 72 90 #endregion 73 91 private CheckedTransformationCollectionView transformationCollectionView; 92 private System.Windows.Forms.Button applyButton; 74 93 } 75 94 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/TransformationView.cs
r10772 r10786 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.MainForm; 23 24 using HeuristicLab.MainForm.WindowsForms; 24 using HeuristicLab.Problems.DataAnalysis.Transformations;25 25 26 26 namespace HeuristicLab.DataPreprocessing.Views { … … 29 29 [Content(typeof(TransformationContent), true)] 30 30 public partial class TransformationView : AsynchronousContentView { 31 31 32 public TransformationView() { 32 33 InitializeComponent(); … … 46 47 } 47 48 } 49 50 private void applyButton_Click(object sender, EventArgs e) { 51 var transformations = Content.CheckedTransformationCollection.CheckedItems; 52 53 var transformator = new PreprocessingTransformator(Content.Data); 54 bool success = transformator.ApplyTransformations(transformations); 55 if (success) { 56 Content.CheckedTransformationCollection.Clear(); 57 } 58 } 48 59 } 49 60 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/HeuristicLab.DataPreprocessing-3.3.csproj
r10783 r10786 78 78 <Compile Include="Implementations\DataGridLogic.cs" /> 79 79 <Compile Include="Interfaces\IFilteredPreprocessingData.cs" /> 80 <Compile Include="PreprocessingTransformator.cs" /> 80 81 <Compile Include="Utils\DataPreprocessingChangedEvent.cs" /> 81 82 <Compile Include="Implementations\Filter\ComparisonFilter.cs" /> … … 91 92 <Compile Include="Implementations\StatisticsContent.cs" /> 92 93 <Compile Include="Implementations\TransformationContent.cs" /> 93 <Compile Include="Implementations\TransformationLogic.cs" />94 94 <Compile Include="Interfaces\IFilterLogic.cs" /> 95 95 <Compile Include="Interfaces\IChartLogic.cs" /> … … 178 178 </ProjectReference> 179 179 </ItemGroup> 180 <ItemGroup>181 <Folder Include="Implementations\Transformations\" />182 </ItemGroup>183 180 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 184 181 <PropertyGroup> -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingContext.cs
r10783 r10786 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;26 25 using HeuristicLab.Optimization; 27 26 using HeuristicLab.Problems.DataAnalysis; 28 using HeuristicLab.Problems.DataAnalysis.Symbolic;29 using Variable = HeuristicLab.Problems.DataAnalysis.Symbolic.Variable;30 27 using HeuristicLab.DataPreprocessing.Implementations; 31 28 using HeuristicLab.DataPreprocessing.Interfaces; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10783 r10786 52 52 public PreprocessingData(IDataAnalysisProblemData problemData) 53 53 : base() { 54 Name = "-"; 54 Name = "Preprocessing Data"; 55 56 transformations = new List<ITransformation>(); 55 57 56 58 variableNames = new List<string>(problemData.Dataset.VariableNames);
Note: See TracChangeset
for help on using the changeset viewer.