Changeset 9999
- Timestamp:
- 09/23/13 08:08:55 (11 years ago)
- Location:
- stable
- Files:
-
- 1 deleted
- 18 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9973-9975,9994
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis merged: 9973
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views (added) merged: 9973
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/SymbolicClassificationSolutionView.Designer.cs
r9456 r9999 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SymbolicDiscriminantFunctionClassificationSolutionView));48 47 this.btnSimplify = new System.Windows.Forms.Button(); 49 48 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); … … 54 53 this.detailsGroupBox.SuspendLayout(); 55 54 this.SuspendLayout(); 55 exportButton.Visible = false; 56 56 // 57 57 // splitContainer -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/SymbolicDiscriminantFunctionClassificationSolutionView.Designer.cs
r9456 r9999 54 54 this.detailsGroupBox.SuspendLayout(); 55 55 this.SuspendLayout(); 56 exportButton.Visible = false; 56 57 // 57 58 // splitContainer -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views (added) merged: 9973
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.Designer.cs
r9456 r9999 60 60 // 61 61 this.splitContainer.Panel1.Controls.Add(this.btnSimplify); 62 this.splitContainer.Size = new System.Drawing.Size(480, 275);63 this.splitContainer.SplitterDistance = 255;64 //65 // itemsGroupBox66 //67 this.itemsGroupBox.Size = new System.Drawing.Size(486, 294);68 //69 // itemsListView70 //71 this.itemsListView.Size = new System.Drawing.Size(249, 238);72 //73 // detailsGroupBox74 //75 this.detailsGroupBox.Size = new System.Drawing.Size(215, 246);76 62 // 77 63 // addButton … … 83 69 this.toolTip.SetToolTip(this.removeButton, "Remove"); 84 70 // 85 // viewHost86 //87 this.viewHost.Size = new System.Drawing.Size(203, 221);88 //89 71 // btnSimplify 90 72 // 91 73 this.btnSimplify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 92 this.btnSimplify.Location = new System.Drawing.Point(17 7, 4);74 this.btnSimplify.Location = new System.Drawing.Point(172, 4); 93 75 this.btnSimplify.Name = "btnSimplify"; 94 76 this.btnSimplify.Size = new System.Drawing.Size(75, 23); … … 100 82 // SymbolicRegressionSolutionView 101 83 // 102 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);103 84 this.Name = "SymbolicRegressionSolutionView"; 104 85 this.Size = new System.Drawing.Size(486, 294); -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.Designer.cs
r9456 r9999 54 54 this.SuspendLayout(); 55 55 // 56 // exportButton 57 // 58 this.exportButton.Visible = false; 59 // 56 60 // splitContainer 57 61 // … … 60 64 // 61 65 this.splitContainer.Panel1.Controls.Add(this.btnSimplify); 62 this.splitContainer.Size = new System.Drawing.Size(480, 275);63 this.splitContainer.SplitterDistance = 255;64 //65 // itemsGroupBox66 //67 this.itemsGroupBox.Size = new System.Drawing.Size(486, 294);68 //69 // itemsListView70 //71 this.itemsListView.Size = new System.Drawing.Size(249, 238);72 //73 // detailsGroupBox74 //75 this.detailsGroupBox.Size = new System.Drawing.Size(215, 246);76 66 // 77 67 // addButton … … 83 73 this.toolTip.SetToolTip(this.removeButton, "Remove"); 84 74 // 85 // viewHost86 //87 this.viewHost.Size = new System.Drawing.Size(203, 221);88 //89 75 // btnSimplify 90 76 // 91 77 this.btnSimplify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 92 this.btnSimplify.Location = new System.Drawing.Point(17 7, 4);78 this.btnSimplify.Location = new System.Drawing.Point(172, 4); 93 79 this.btnSimplify.Name = "btnSimplify"; 94 80 this.btnSimplify.Size = new System.Drawing.Size(75, 23); … … 100 86 // SymbolicTimeSeriesPrognosisSolutionView 101 87 // 102 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);103 88 this.Name = "SymbolicTimeSeriesPrognosisSolutionView"; 104 this.Size = new System.Drawing.Size(486, 294);105 89 this.splitContainer.Panel1.ResumeLayout(false); 106 90 this.splitContainer.Panel2.ResumeLayout(false); … … 110 94 this.detailsGroupBox.ResumeLayout(false); 111 95 this.ResumeLayout(false); 96 112 97 } 113 98 -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views merged: 9973,9975,9994
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Exporters/SymbolicSolutionExcelExporter.cs
r9975 r9999 105 105 106 106 modelWorksheet.Cells[row, 1].Value = "Estimation Limits Lower"; 107 modelWorksheet.Cells[row, 2].Value = solution.Model.LowerEstimationLimit;107 modelWorksheet.Cells[row, 2].Value = Math.Max(solution.Model.LowerEstimationLimit, -9.99999999999999E+307); // minimal value supported by excel 108 108 modelWorksheet.Names.Add("EstimationLimitLower", modelWorksheet.Cells[row, 2]); 109 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";109 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 110 110 row++; 111 111 112 112 modelWorksheet.Cells[row, 1].Value = "Estimation Limits Upper"; 113 modelWorksheet.Cells[row, 2].Value = solution.Model.UpperEstimationLimit;113 modelWorksheet.Cells[row, 2].Value = Math.Min(solution.Model.UpperEstimationLimit, 9.99999999999999E+307); // maximal value supported by excel 114 114 modelWorksheet.Names.Add("EstimationLimitUpper", modelWorksheet.Cells[row, 2]); 115 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";115 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 116 116 row += 2; 117 117 … … 163 163 modelWorksheet.Cells[row, 2].Formula = string.Format("AVERAGE({0})", excelTrainingMSE); 164 164 modelWorksheet.Names.Add("TrainingMSE", modelWorksheet.Cells[row, 2]); 165 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";165 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 166 166 row++; 167 167 … … 169 169 modelWorksheet.Cells[row, 2].Formula = string.Format("AVERAGE({0})", excelTestMSE); 170 170 modelWorksheet.Names.Add("TestMSE", modelWorksheet.Cells[row, 2]); 171 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";171 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 172 172 row++; 173 173 174 174 modelWorksheet.Cells[row, 1].Value = "Mean absolute error (training)"; 175 175 modelWorksheet.Cells[row, 2].Formula = string.Format("AVERAGE({0})", excelTrainingAbsoluteError); 176 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";176 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 177 177 row++; 178 178 179 179 modelWorksheet.Cells[row, 1].Value = "Mean absolute error (test)"; 180 180 modelWorksheet.Cells[row, 2].Formula = string.Format("AVERAGE({0})", excelTestAbsoluteError); 181 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";181 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 182 182 row++; 183 183 184 184 modelWorksheet.Cells[row, 1].Value = "Mean error (training)"; 185 185 modelWorksheet.Cells[row, 2].Formula = string.Format("AVERAGE({0})", excelTrainingMeanError); 186 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";186 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 187 187 row++; 188 188 189 189 modelWorksheet.Cells[row, 1].Value = "Mean error (test)"; 190 190 modelWorksheet.Cells[row, 2].Formula = string.Format("AVERAGE({0})", excelTestMeanError); 191 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";191 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 192 192 row++; 193 193 … … 204 204 modelWorksheet.Cells[row, 1].Value = "Normalized Mean Squared error (training)"; 205 205 modelWorksheet.Cells[row, 2].Formula = string.Format("TrainingMSE / VAR({0})", excelTrainingTarget); 206 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";206 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 207 207 row++; 208 208 209 209 modelWorksheet.Cells[row, 1].Value = "Normalized Mean Squared error (test)"; 210 210 modelWorksheet.Cells[row, 2].Formula = string.Format("TestMSE / VAR({0})", excelTestTarget); 211 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000 ";211 modelWorksheet.Cells[row, 2].Style.Numberformat.Format = "0.000E+00"; 212 212 213 213 modelWorksheet.Cells["A1:B" + row].AutoFitColumns(); -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj
r9931 r9999 108 108 <Reference Include="System.Drawing" /> 109 109 <Reference Include="System.Windows.Forms" /> 110 <Reference Include="System.Windows.Forms.DataVisualization" /> 111 <Reference Include="System.Xml.Linq"> 112 <RequiredTargetFramework>3.5</RequiredTargetFramework> 113 </Reference> 114 <Reference Include="System.Data.DataSetExtensions"> 115 <RequiredTargetFramework>3.5</RequiredTargetFramework> 116 </Reference> 117 <Reference Include="System.Data" /> 118 <Reference Include="System.Xml" /> 119 </ItemGroup> 120 <ItemGroup> 110 </ItemGroup> 111 <ItemGroup> 112 <Compile Include="Exporters\SymbolicSolutionExcelExporter.cs" /> 121 113 <Compile Include="InteractiveSymbolicExpressionTreeChart.cs"> 122 114 <SubType>UserControl</SubType> … … 131 123 <DependentUpon>MathSymbolicDataAnalysisModelView.cs</DependentUpon> 132 124 </Compile> 133 <Compile Include="MenuItems\ExportSymbolicSolutionToExcelMenuItem.cs" />134 125 <Compile Include="Plugin.cs" /> 135 126 <Compile Include="TextualSymbolicDataAnalysisModelView.cs"> … … 216 207 <Private>False</Private> 217 208 </ProjectReference> 218 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">219 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>220 <Name>HeuristicLab.Common.Resources-3.3</Name>221 <Private>False</Private>222 </ProjectReference>223 209 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 224 210 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> … … 266 252 <Private>False</Private> 267 253 </ProjectReference> 268 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">269 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>270 <Name>HeuristicLab.Operators-3.3</Name>271 <Private>False</Private>272 </ProjectReference>273 <ProjectReference Include="..\..\HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj">274 <Project>{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}</Project>275 <Name>HeuristicLab.Optimization.Views-3.3</Name>276 <Private>False</Private>277 </ProjectReference>278 254 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 279 255 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> … … 281 257 <Private>False</Private> 282 258 </ProjectReference> 283 <ProjectReference Include="..\..\HeuristicLab.Optimizer\3.3\HeuristicLab.Optimizer-3.3.csproj">284 <Project>{c664305e-497c-4533-a140-967dedb05c19}</Project>285 <Name>HeuristicLab.Optimizer-3.3</Name>286 </ProjectReference>287 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">288 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>289 <Name>HeuristicLab.Parameters-3.3</Name>290 <Private>False</Private>291 </ProjectReference>292 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">293 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>294 <Name>HeuristicLab.Persistence-3.3</Name>295 <Private>False</Private>296 </ProjectReference>297 259 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> 298 260 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> … … 308 270 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 309 271 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 310 <Private>False</Private>311 </ProjectReference>312 <ProjectReference Include="..\..\HeuristicLab.Visualization.ChartControlsExtensions\3.3\HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj">313 <Project>{315BDA09-3F4F-49B3-9790-B37CFC1C5750}</Project>314 <Name>HeuristicLab.Visualization.ChartControlsExtensions-3.3</Name>315 272 <Private>False</Private> 316 273 </ProjectReference> -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Plugin.cs.frame
r9931 r9999 43 43 [PluginDependency("HeuristicLab.MathJax", "1.1")] 44 44 [PluginDependency("HeuristicLab.Optimization","3.3")] 45 [PluginDependency("HeuristicLab.Optimizer","3.3")]46 45 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")] 47 46 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.4")] -
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 9973-9974
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/CreateEnsembleMenuItem.cs
r9932 r9999 37 37 } 38 38 public override IEnumerable<string> Structure { 39 get { return new string[] { "& Data Analysis" }; }39 get { return new string[] { "&Edit", "&Data Analysis" }; } 40 40 } 41 41 public override int Position { -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/ShrinkDataAnalysisRunsMenuItem.cs
r9933 r9999 41 41 } 42 42 public override IEnumerable<string> Structure { 43 get { return new string[] { "& Data Analysis" }; }43 get { return new string[] { "&Edit", "&Data Analysis" }; } 44 44 } 45 45 public override int Position { -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.Designer.cs
r9456 r9999 44 44 /// </summary> 45 45 private void InitializeComponent() { 46 this.exportButton = new System.Windows.Forms.Button(); 47 this.exportFileDialog = new System.Windows.Forms.SaveFileDialog(); 46 48 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 47 49 this.splitContainer.Panel1.SuspendLayout(); … … 54 56 // splitContainer 55 57 // 58 // 59 // splitContainer.Panel2 60 // 61 this.splitContainer.Panel2.Controls.Add(this.exportButton); 56 62 // 57 63 // itemsGroupBox … … 67 73 this.toolTip.SetToolTip(this.removeButton, "Remove"); 68 74 // 75 // exportButton 76 // 77 this.exportButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 78 this.exportButton.Location = new System.Drawing.Point(215, 4); 79 this.exportButton.Name = "exportButton"; 80 this.exportButton.Size = new System.Drawing.Size(54, 23); 81 this.exportButton.TabIndex = 6; 82 this.exportButton.Text = "Export"; 83 this.exportButton.UseVisualStyleBackColor = true; 84 this.exportButton.Click += new System.EventHandler(this.exportButton_Click); 85 // 69 86 // DataAnalysisSolutionView 70 87 // 71 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);72 88 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 73 89 this.Name = "DataAnalysisSolutionView"; … … 84 100 #endregion 85 101 102 private System.Windows.Forms.SaveFileDialog exportFileDialog; 103 protected System.Windows.Forms.Button exportButton; 104 86 105 } 87 106 } -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r9456 r9999 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Drawing; 25 26 using System.Linq; … … 30 31 using HeuristicLab.Optimization; 31 32 using HeuristicLab.Optimization.Views; 33 using HeuristicLab.PluginInfrastructure; 32 34 33 35 namespace HeuristicLab.Problems.DataAnalysis.Views { 36 34 37 [View("DataAnalysisSolution View")] 35 38 [Content(typeof(DataAnalysisSolution), false)] … … 49 52 addButton.Enabled = false; 50 53 removeButton.Enabled = false; 54 if (Content == null) { 55 exportButton.Enabled = false; 56 } else { 57 exportButton.Enabled = !Locked; 58 } 51 59 } 52 60 … … 117 125 } else 118 126 base.itemsListView_SelectedIndexChanged(sender, e); 127 } 128 129 130 private void exportButton_Click(object sender, EventArgs e) { 131 var exporters = ApplicationManager.Manager.GetInstances<IDataAnalysisSolutionExporter>() 132 .Where(exporter => exporter.Supports(Content)).ToArray(); 133 exportFileDialog.Filter = exporters.Skip(1) 134 .Aggregate(exporters.First().FileTypeFilter, (s, exporter) => s + "|" + exporter.FileTypeFilter); 135 var result = exportFileDialog.ShowDialog(); 136 if (result == DialogResult.OK) { 137 138 var name = exportFileDialog.FileName; 139 var selectedExporter = exporters.Single(exporter => exporter.FileTypeFilter == exportFileDialog.Filter); 140 141 using (BackgroundWorker bg = new BackgroundWorker()) { 142 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Exportion solution to " + name + "."); 143 bg.DoWork += (_, __) => selectedExporter.Export(Content, name); 144 bg.RunWorkerCompleted += (_, __) => MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this); 145 bg.RunWorkerAsync(); 146 } 147 } 119 148 } 120 149 -
stable/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r9856 r9999 148 148 </Compile> 149 149 <Compile Include="Interfaces\Classification\IDiscriminantFunctionThresholdCalculator.cs" /> 150 <Compile Include="Interfaces\IDataAnalysisSolutionExporter.cs" /> 150 151 <Compile Include="Interfaces\IDependencyCalculator.cs" /> 151 152 <Compile Include="Interfaces\Regression\IRegressionEnsembleModel.cs">
Note: See TracChangeset
for help on using the changeset viewer.