Changeset 6256 for trunk/sources
- Timestamp:
- 05/23/11 16:28:50 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView.cs
r5993 r6256 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using System.Linq; 26 using System.Windows.Forms;27 25 using HeuristicLab.Common; 28 using HeuristicLab. MainForm.WindowsForms;26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.Views; 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;31 28 32 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views { … … 115 112 for (int i = 1; i < sourceTree.Root.SubtreesCount; i++) { 116 113 tempTree.Root.AddSubtree((ISymbolicExpressionTreeNode)sourceTree.Root.GetSubtree(i).Clone()); 117 } 114 } 118 115 var start = tempTree.Root.GetSubtree(0); 119 116 while (start.SubtreesCount > 0) start.RemoveSubtree(0); … … 134 131 } 135 132 } 133 134 protected override void btnOptimizeConstants_Click(object sender, EventArgs e) { 135 136 } 136 137 } 137 138 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views-3.4.csproj
r5830 r6256 165 165 <Name>HeuristicLab.MainForm-3.3</Name> 166 166 </ProjectReference> 167 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 168 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project> 169 <Name>HeuristicLab.Operators-3.3</Name> 170 </ProjectReference> 167 171 <ProjectReference Include="..\..\HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj"> 168 172 <Project>{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}</Project> -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.Designer.cs
r5809 r6256 53 53 this.Name = "InteractiveSymbolicRegressionSolutionSimplifierView"; 54 54 this.Size = new System.Drawing.Size(564, 348); 55 this.btnOptimizeConstants.Enabled = true; 55 56 this.ResumeLayout(false); 56 57 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r5993 r6256 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using System.Linq; 26 using System.Windows.Forms;27 25 using HeuristicLab.Common; 28 using HeuristicLab. MainForm.WindowsForms;26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.Views; 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;31 28 32 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views { … … 123 120 } 124 121 } 122 123 protected override void btnOptimizeConstants_Click(object sender, EventArgs e) { 124 SymbolicRegressionConstantOptimizationEvaluator.OptimizeConstants(Content.Model.Interpreter, Content.Model.SymbolicExpressionTree, Content.ProblemData, Content.ProblemData.TrainingIndizes, 0, 10); 125 UpdateModel(Content.Model.SymbolicExpressionTree); 126 } 125 127 } 126 128 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r5809 r6256 109 109 <ItemGroup> 110 110 <Compile Include="MultiObjective\SymbolicRegressionMultiObjectiveValidationBestSolutionAnalyzer.cs" /> 111 <Compile Include="SingleObjective\SymbolicRegressionConstantOptimizationEvaluator.cs" /> 111 112 <Compile Include="SingleObjective\SymbolicRegressionSingleObjectiveOverfittingAnalyzer.cs" /> 112 113 <Compile Include="SymbolicRegressionModel.cs" /> -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.Designer.cs
r5809 r6256 49 49 this.splitContainer = new System.Windows.Forms.SplitContainer(); 50 50 this.grpSimplify = new System.Windows.Forms.GroupBox(); 51 this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); 51 52 this.btnSimplify = new System.Windows.Forms.Button(); 53 this.btnOptimizeConstants = new System.Windows.Forms.Button(); 52 54 this.grpViewHost = new System.Windows.Forms.GroupBox(); 55 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 53 56 this.splitContainer.Panel1.SuspendLayout(); 54 57 this.splitContainer.Panel2.SuspendLayout(); 55 58 this.splitContainer.SuspendLayout(); 56 59 this.grpSimplify.SuspendLayout(); 60 this.flowLayoutPanel.SuspendLayout(); 57 61 this.grpViewHost.SuspendLayout(); 58 62 this.SuspendLayout(); … … 60 64 // treeChart 61 65 // 62 this.treeChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 63 | System.Windows.Forms.AnchorStyles.Left)64 66 this.treeChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 67 | System.Windows.Forms.AnchorStyles.Left) 68 | System.Windows.Forms.AnchorStyles.Right))); 65 69 this.treeChart.BackgroundColor = System.Drawing.Color.White; 66 70 this.treeChart.LineColor = System.Drawing.Color.Black; 67 71 this.treeChart.Location = new System.Drawing.Point(6, 16); 68 72 this.treeChart.Name = "treeChart"; 69 this.treeChart.Size = new System.Drawing.Size(201, 29 7);73 this.treeChart.Size = new System.Drawing.Size(201, 291); 70 74 this.treeChart.Spacing = 5; 71 75 this.treeChart.TabIndex = 0; … … 76 80 // viewHost 77 81 // 78 this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 79 | System.Windows.Forms.AnchorStyles.Left)80 82 this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 83 | System.Windows.Forms.AnchorStyles.Left) 84 | System.Windows.Forms.AnchorStyles.Right))); 81 85 this.viewHost.Caption = "View"; 82 86 this.viewHost.Content = null; … … 87 91 this.viewHost.Size = new System.Drawing.Size(335, 326); 88 92 this.viewHost.TabIndex = 0; 93 this.viewHost.ViewsLabelVisible = true; 89 94 this.viewHost.ViewType = null; 90 95 // … … 108 113 // grpSimplify 109 114 // 110 this.grpSimplify.Controls.Add(this. btnSimplify);115 this.grpSimplify.Controls.Add(this.flowLayoutPanel); 111 116 this.grpSimplify.Controls.Add(this.treeChart); 112 117 this.grpSimplify.Dock = System.Windows.Forms.DockStyle.Fill; … … 118 123 this.grpSimplify.Text = "Simplify"; 119 124 // 125 // flowLayoutPanel 126 // 127 this.flowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 128 | System.Windows.Forms.AnchorStyles.Right))); 129 this.flowLayoutPanel.Controls.Add(this.btnSimplify); 130 this.flowLayoutPanel.Controls.Add(this.btnOptimizeConstants); 131 this.flowLayoutPanel.Location = new System.Drawing.Point(6, 313); 132 this.flowLayoutPanel.Name = "flowLayoutPanel"; 133 this.flowLayoutPanel.Size = new System.Drawing.Size(204, 29); 134 this.flowLayoutPanel.TabIndex = 2; 135 this.flowLayoutPanel.WrapContents = false; 136 // 120 137 // btnSimplify 121 138 // 122 this.btnSimplify.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 123 | System.Windows.Forms.AnchorStyles.Right))); 124 this.btnSimplify.Location = new System.Drawing.Point(6, 319); 139 this.btnSimplify.Location = new System.Drawing.Point(3, 3); 125 140 this.btnSimplify.Name = "btnSimplify"; 126 this.btnSimplify.Size = new System.Drawing.Size( 201, 23);141 this.btnSimplify.Size = new System.Drawing.Size(95, 23); 127 142 this.btnSimplify.TabIndex = 1; 128 143 this.btnSimplify.Text = "Simplify"; 129 144 this.btnSimplify.UseVisualStyleBackColor = true; 130 145 this.btnSimplify.Click += new System.EventHandler(this.btnSimplify_Click); 146 // 147 // btnOptimizeConstants 148 // 149 this.btnOptimizeConstants.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 150 this.btnOptimizeConstants.Enabled = false; 151 this.btnOptimizeConstants.Location = new System.Drawing.Point(104, 3); 152 this.btnOptimizeConstants.Name = "btnOptimizeConstants"; 153 this.btnOptimizeConstants.Size = new System.Drawing.Size(97, 23); 154 this.btnOptimizeConstants.TabIndex = 2; 155 this.btnOptimizeConstants.Text = "Optimize"; 156 this.btnOptimizeConstants.UseVisualStyleBackColor = true; 157 this.btnOptimizeConstants.Click += new System.EventHandler(this.btnOptimizeConstants_Click); 131 158 // 132 159 // grpViewHost … … 141 168 this.grpViewHost.Text = "Details"; 142 169 // 143 // InteractiveSymbolic RegressionSolutionSimplifierView170 // InteractiveSymbolicDataAnalysisSolutionSimplifierView 144 171 // 145 172 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 146 173 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 147 174 this.Controls.Add(this.splitContainer); 148 this.Name = "InteractiveSymbolic RegressionSolutionSimplifierView";175 this.Name = "InteractiveSymbolicDataAnalysisSolutionSimplifierView"; 149 176 this.Size = new System.Drawing.Size(564, 348); 150 177 this.splitContainer.Panel1.ResumeLayout(false); 151 178 this.splitContainer.Panel2.ResumeLayout(false); 179 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); 152 180 this.splitContainer.ResumeLayout(false); 153 181 this.grpSimplify.ResumeLayout(false); 182 this.flowLayoutPanel.ResumeLayout(false); 154 183 this.grpViewHost.ResumeLayout(false); 155 184 this.ResumeLayout(false); … … 165 194 private System.Windows.Forms.GroupBox grpViewHost; 166 195 private System.Windows.Forms.Button btnSimplify; 196 private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel; 197 protected System.Windows.Forms.Button btnOptimizeConstants; 167 198 } 168 199 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
r6113 r6256 212 212 UpdateModel(simplifiedExpressionTree); 213 213 } 214 215 protected abstract void btnOptimizeConstants_Click(object sender, EventArgs e); 214 216 } 215 217 }
Note: See TracChangeset
for help on using the changeset viewer.