Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4
- Timestamp:
- 07/18/14 12:35:00 (11 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views-3.4.csproj
r11202 r11203 151 151 <Private>False</Private> 152 152 </ProjectReference> 153 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">154 <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project>155 <Name>HeuristicLab.Common.Resources-3.3</Name>156 <Private>False</Private>157 </ProjectReference>158 153 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 159 154 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView.Designer.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 49 49 } 50 50 51 protected override Dictionary<ISymbolicExpressionTreeNode, Tuple<double, double>> CalculateImpactAndReplacementValues(ISymbolicExpressionTree tree) { 51 protected override void UpdateModel(ISymbolicExpressionTree tree) { 52 var model = new SymbolicTimeSeriesPrognosisModel(tree, Content.Model.Interpreter); 53 model.Scale(Content.ProblemData); 54 Content.Model = model; 55 } 56 57 protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateReplacementValues(ISymbolicExpressionTree tree) { 58 Dictionary<ISymbolicExpressionTreeNode, double> replacementValues = new Dictionary<ISymbolicExpressionTreeNode, double>(); 59 foreach (var componentBranch in tree.Root.GetSubtree(0).Subtrees) 60 foreach (ISymbolicExpressionTreeNode node in componentBranch.IterateNodesPrefix()) { 61 replacementValues[node] = CalculateReplacementValue(node, tree); 62 } 63 return replacementValues; 64 } 65 66 protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateImpactValues(ISymbolicExpressionTree tree) { 52 67 var interpreter = Content.Model.Interpreter; 53 68 var rows = Content.ProblemData.TrainingIndices; … … 57 72 var originalOutput = interpreter.GetSymbolicExpressionTreeValues(tree, dataset, rows).ToArray(); 58 73 59 var impactAndReplacementValues = new Dictionary<ISymbolicExpressionTreeNode, Tuple<double, double>>();74 Dictionary<ISymbolicExpressionTreeNode, double> impactValues = new Dictionary<ISymbolicExpressionTreeNode, double>(); 60 75 List<ISymbolicExpressionTreeNode> nodes = tree.Root.GetSubtree(0).GetSubtree(0).IterateNodesPostfix().ToList(); 61 76 OnlineCalculatorError errorState; … … 75 90 // impact < 0 if new solution is better 76 91 // impact > 0 if new solution is worse 77 double impact = originalR2 - newR2; 78 impactAndReplacementValues[node] = new Tuple<double, double>(impact, constantNode.Value); 92 impactValues[node] = originalR2 - newR2; 79 93 SwitchNode(parent, replacementNode, node); 80 94 } 81 return impactAndReplacementValues; 82 } 83 84 protected override void UpdateModel(ISymbolicExpressionTree tree) { 85 var model = new SymbolicTimeSeriesPrognosisModel(tree, Content.Model.Interpreter); 86 model.Scale(Content.ProblemData); 87 Content.Model = model; 88 } 89 90 protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateReplacementValues(ISymbolicExpressionTree tree) { 91 var replacementValues = new Dictionary<ISymbolicExpressionTreeNode, double>(); 92 foreach (var componentBranch in tree.Root.GetSubtree(0).Subtrees) 93 foreach (ISymbolicExpressionTreeNode node in componentBranch.IterateNodesPrefix()) { 94 replacementValues[node] = CalculateReplacementValue(node, tree); 95 } 96 return replacementValues; 97 } 98 99 protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateImpactValues(ISymbolicExpressionTree tree) { 100 var impactAndReplacementValues = CalculateImpactAndReplacementValues(tree); 101 return impactAndReplacementValues.ToDictionary(x => x.Key, x => x.Value.Item1); // item1 of the tuple is the impact value 95 return impactValues; 102 96 } 103 97 -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/Plugin.cs.frame
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views { 28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views", "Provides views for symbolic time-series prognosis problem classes.", "3.4. 6.$WCREV$")]28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views", "Provides views for symbolic time-series prognosis problem classes.", "3.4.1.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views-3.4.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Common", "3.3")] 31 [PluginDependency("HeuristicLab.Common.Resources", "3.3")]32 31 [PluginDependency("HeuristicLab.Core", "3.3")] 33 32 [PluginDependency("HeuristicLab.Core.Views", "3.3")] -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/Properties/AssemblyInfo.cs.frame
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 31 31 [assembly: AssemblyCompany("")] 32 32 [assembly: AssemblyProduct("HeuristicLab")] 33 [assembly: AssemblyCopyright("(c) 2002-201 4HEAL")]33 [assembly: AssemblyCopyright("(c) 2002-2011 HEAL")] 34 34 [assembly: AssemblyTrademark("")] 35 35 [assembly: AssemblyCulture("")] … … 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.4.0.0")] 55 [assembly: AssemblyFileVersion("3.4. 6.$WCREV$")]55 [assembly: AssemblyFileVersion("3.4.1.$WCREV$")] -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.Designer.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 54 54 this.SuspendLayout(); 55 55 // 56 // flowLayoutPanel56 // splitContainer 57 57 // 58 this.flowLayoutPanel.Controls.Add(this.btnSimplify); 58 // 59 // splitContainer.Panel1 60 // 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 // itemsGroupBox 66 // 67 this.itemsGroupBox.Size = new System.Drawing.Size(486, 294); 68 // 69 // itemsListView 70 // 71 this.itemsListView.Size = new System.Drawing.Size(249, 238); 72 // 73 // detailsGroupBox 74 // 75 this.detailsGroupBox.Size = new System.Drawing.Size(215, 246); 76 // 77 // addButton 78 // 79 this.toolTip.SetToolTip(this.addButton, "Add"); 80 // 81 // removeButton 82 // 83 this.toolTip.SetToolTip(this.removeButton, "Remove"); 84 // 85 // viewHost 86 // 87 this.viewHost.Size = new System.Drawing.Size(203, 221); 59 88 // 60 89 // btnSimplify 61 90 // 62 this.btnSimplify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); 63 this.btnSimplify.Image = HeuristicLab.Common.Resources.VSImageLibrary.FormulaEvaluator; 64 this.btnSimplify.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; 91 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(177, 4); 65 93 this.btnSimplify.Name = "btnSimplify"; 66 this.btnSimplify.TabIndex = 7; 67 this.btnSimplify.Size = new System.Drawing.Size(105, 24); 68 this.btnSimplify.Text = "Simplify Model"; 69 this.btnSimplify.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 94 this.btnSimplify.Size = new System.Drawing.Size(75, 23); 95 this.btnSimplify.TabIndex = 6; 96 this.btnSimplify.Text = "Simplify"; 70 97 this.btnSimplify.UseVisualStyleBackColor = true; 71 98 this.btnSimplify.Click += new System.EventHandler(this.btn_SimplifyModel_Click); 72 this.toolTip.SetToolTip(this.btnSimplify, "Simplify solution");73 99 // 74 100 // SymbolicTimeSeriesPrognosisSolutionView 75 101 // 102 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 76 103 this.Name = "SymbolicTimeSeriesPrognosisSolutionView"; 104 this.Size = new System.Drawing.Size(486, 294); 77 105 this.splitContainer.Panel1.ResumeLayout(false); 78 106 this.splitContainer.Panel2.ResumeLayout(false); … … 82 110 this.detailsGroupBox.ResumeLayout(false); 83 111 this.ResumeLayout(false); 84 85 112 } 86 113 -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System. Linq;23 using System.Windows.Forms; 24 24 using HeuristicLab.MainForm; 25 25 using HeuristicLab.Problems.DataAnalysis.Views; … … 38 38 } 39 39 40 protected override void SetEnabledStateOfControls() {41 base.SetEnabledStateOfControls();42 btnSimplify.Enabled = Content != null && !Locked && Content.ProblemData.TrainingIndices.Any(); // simplification is only possible if there are trainings samples43 }44 45 40 private void btn_SimplifyModel_Click(object sender, EventArgs e) { 46 varview = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView();41 InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView view = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView(); 47 42 view.Content = (SymbolicTimeSeriesPrognosisSolution)this.Content.Clone(); 48 43 view.Show();
Note: See TracChangeset
for help on using the changeset viewer.