Changeset 10854
- Timestamp:
- 05/14/14 15:42:35 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views-3.4.csproj
r8600 r10854 242 242 <Private>False</Private> 243 243 </ProjectReference> 244 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Transformations\3.3\HeuristicLab.Problems.DataAnalysis.Transformations-3.3.csproj"> 245 <Project>{2e257a94-d1af-435c-99b4-5ac00eadfd6a}</Project> 246 <Name>HeuristicLab.Problems.DataAnalysis.Transformations-3.3</Name> 247 </ProjectReference> 244 248 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Views\3.4\HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj"> 245 249 <Project>{3E9E8944-44FF-40BB-A622-3A4A7DD0F198}</Project> … … 284 288 --> 285 289 <PropertyGroup> 286 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)290 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 287 291 set ProjectDir=$(ProjectDir) 288 292 set SolutionDir=$(SolutionDir) … … 291 295 call PreBuildEvent.cmd 292 296 </PreBuildEvent> 293 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">297 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 294 298 export ProjectDir=$(ProjectDir) 295 299 export SolutionDir=$(SolutionDir) -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/Plugin.cs.frame
r10037 r10854 39 39 [PluginDependency("HeuristicLab.Optimization","3.3")] 40 40 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")] 41 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Transformations", "3.3")] 41 42 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.4")] 42 43 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic.Regression", "3.4")] -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.Designer.cs
r9973 r10854 46 46 private void InitializeComponent() { 47 47 this.btnSimplify = new System.Windows.Forms.Button(); 48 this.transformModelButton = new System.Windows.Forms.Button(); 48 49 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 49 50 this.splitContainer.Panel1.SuspendLayout(); … … 60 61 // 61 62 this.splitContainer.Panel1.Controls.Add(this.btnSimplify); 63 // 64 // splitContainer.Panel2 65 // 66 this.splitContainer.Panel2.Controls.Add(this.transformModelButton); 62 67 // 63 68 // addButton … … 80 85 this.btnSimplify.Click += new System.EventHandler(this.btn_SimplifyModel_Click); 81 86 // 87 // transformModelButton 88 // 89 this.transformModelButton.Location = new System.Drawing.Point(84, 3); 90 this.transformModelButton.Name = "transformModelButton"; 91 this.transformModelButton.Size = new System.Drawing.Size(100, 23); 92 this.transformModelButton.TabIndex = 8; 93 this.transformModelButton.Text = "Backtransform Model"; 94 this.transformModelButton.UseVisualStyleBackColor = true; 95 this.transformModelButton.Click += new System.EventHandler(this.transformModelButton_Click); 96 // 82 97 // SymbolicRegressionSolutionView 83 98 // … … 96 111 #endregion 97 112 private System.Windows.Forms.Button btnSimplify; 113 private System.Windows.Forms.Button transformModelButton; 98 114 } 99 115 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.cs
r9456 r10854 38 38 } 39 39 40 protected override void SetEnabledStateOfControls() { 41 base.SetEnabledStateOfControls(); 42 if (Content == null) { 43 transformModelButton.Enabled = false; 44 } else { 45 transformModelButton.Enabled = !Locked; 46 } 47 } 48 40 49 private void btn_SimplifyModel_Click(object sender, EventArgs e) { 41 50 InteractiveSymbolicRegressionSolutionSimplifierView view = new InteractiveSymbolicRegressionSolutionSimplifierView(); … … 43 52 view.Show(); 44 53 } 54 55 private void transformModelButton_Click(object sender, EventArgs e) { 56 var mapper = new TransformationToSymbolicTreeMapper(); 57 var transformator = new SymbolicExpressionTreeBacktransformator(mapper); 58 var model = transformator.Backtransform(Content.Model, Content.ProblemData.Transformations); 59 MainFormManager.MainForm.ShowContent(model); 60 } 45 61 } 46 62 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r10845 r10854 126 126 <SubType>Code</SubType> 127 127 </Compile> 128 <Compile Include="SymbolicExpressionTreeBacktransformator.cs" /> 128 129 <Compile Include="SymbolicDataAnalysisExpressionPruningOperator.cs" /> 129 130 <Compile Include="Analyzers\SymbolicDataAnalysisVariableFrequencyAnalyzer.cs" /> -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r10845 r10854 150 150 <Compile Include="Interfaces\IDataAnalysisSolutionExporter.cs" /> 151 151 <Compile Include="Interfaces\IDependencyCalculator.cs" /> 152 <Compile Include="Interfaces\IModelBacktransformator.cs" /> 152 153 <Compile Include="Interfaces\ITransformationMapper.cs" /> 153 154 <Compile Include="Interfaces\Regression\IRegressionEnsembleModel.cs"> -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/ITransformationMapper.cs
r10845 r10854 20 20 #endregion 21 21 22 23 22 using HeuristicLab.Problems.DataAnalysis.Transformations; 24 23 25 24 namespace HeuristicLab.Problems.DataAnalysis { 26 public interface ITransformationMapper< T> {25 public interface ITransformationMapper<out T> { 27 26 T GenerateModel(ITransformation transformation); 28 27 T GenerateInverseModel(ITransformation transformation);
Note: See TracChangeset
for help on using the changeset viewer.