Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views
- Timestamp:
- 07/18/14 13:44:53 (10 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.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 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
r11203 r11205 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> 153 158 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 154 159 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView.Designer.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 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
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 1Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 49 49 } 50 50 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) { 51 protected override Dictionary<ISymbolicExpressionTreeNode, Tuple<double, double>> CalculateImpactAndReplacementValues(ISymbolicExpressionTree tree) { 67 52 var interpreter = Content.Model.Interpreter; 68 53 var rows = Content.ProblemData.TrainingIndices; … … 72 57 var originalOutput = interpreter.GetSymbolicExpressionTreeValues(tree, dataset, rows).ToArray(); 73 58 74 Dictionary<ISymbolicExpressionTreeNode, double> impactValues = new Dictionary<ISymbolicExpressionTreeNode, double>();59 var impactAndReplacementValues = new Dictionary<ISymbolicExpressionTreeNode, Tuple<double, double>>(); 75 60 List<ISymbolicExpressionTreeNode> nodes = tree.Root.GetSubtree(0).GetSubtree(0).IterateNodesPostfix().ToList(); 76 61 OnlineCalculatorError errorState; … … 90 75 // impact < 0 if new solution is better 91 76 // impact > 0 if new solution is worse 92 impactValues[node] = originalR2 - newR2; 77 double impact = originalR2 - newR2; 78 impactAndReplacementValues[node] = new Tuple<double, double>(impact, constantNode.Value); 93 79 SwitchNode(parent, replacementNode, node); 94 80 } 95 return impactValues; 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 96 102 } 97 103 -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/Plugin.cs.frame
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 1Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 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. 1.$WCREV$")]28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views", "Provides views for symbolic time-series prognosis problem classes.", "3.4.6.$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")] 31 32 [PluginDependency("HeuristicLab.Core", "3.3")] 32 33 [PluginDependency("HeuristicLab.Core.Views", "3.3")] -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/Properties/AssemblyInfo.cs.frame
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 1Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 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 1HEAL")]33 [assembly: AssemblyCopyright("(c) 2002-2014 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. 1.$WCREV$")]55 [assembly: AssemblyFileVersion("3.4.6.$WCREV$")] -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.Designer.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 54 54 this.SuspendLayout(); 55 55 // 56 // splitContainer56 // flowLayoutPanel 57 57 // 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); 58 this.flowLayoutPanel.Controls.Add(this.btnSimplify); 88 59 // 89 60 // btnSimplify 90 61 // 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); 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; 93 65 this.btnSimplify.Name = "btnSimplify"; 94 this.btnSimplify.Size = new System.Drawing.Size(75, 23); 95 this.btnSimplify.TabIndex = 6; 96 this.btnSimplify.Text = "Simplify"; 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; 97 70 this.btnSimplify.UseVisualStyleBackColor = true; 98 71 this.btnSimplify.Click += new System.EventHandler(this.btn_SimplifyModel_Click); 72 this.toolTip.SetToolTip(this.btnSimplify, "Simplify solution"); 99 73 // 100 74 // SymbolicTimeSeriesPrognosisSolutionView 101 75 // 102 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);103 76 this.Name = "SymbolicTimeSeriesPrognosisSolutionView"; 104 this.Size = new System.Drawing.Size(486, 294);105 77 this.splitContainer.Panel1.ResumeLayout(false); 106 78 this.splitContainer.Panel2.ResumeLayout(false); … … 110 82 this.detailsGroupBox.ResumeLayout(false); 111 83 this.ResumeLayout(false); 84 112 85 } 113 86 -
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 1Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 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. Windows.Forms;23 using System.Linq; 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 samples 43 } 44 40 45 private void btn_SimplifyModel_Click(object sender, EventArgs e) { 41 InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierViewview = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView();46 var view = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView(); 42 47 view.Content = (SymbolicTimeSeriesPrognosisSolution)this.Content.Clone(); 43 48 view.Show();
Note: See TracChangeset
for help on using the changeset viewer.