Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16400


Ignore:
Timestamp:
12/19/18 07:51:00 (6 years ago)
Author:
gkronber
Message:

#2925 small gui improvement

Location:
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DynamicalSystemsModelling/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DynamicalSystemsModelling/3.3/Solution.cs

    r16399 r16400  
    8585    }
    8686
    87     public IEnumerable<double[]> Predict(IntRange episode, int forecastHorizon) {
     87    public IEnumerable<double[]> Predict(IntRange episode, int forecastHorizon, out double snmse) {
    8888      var forecastEpisode = new IntRange(episode.Start, episode.End + forecastHorizon);
    89       double nmse = double.NaN;
     89
    9090      double[] optL0;
    9191      var random = new FastRandom(12345);
    92       Problem.OptimizeForEpisodes(trees, problemData, targetVars, latentVariables, random, new[] { forecastEpisode }, 100, numericIntegrationSteps, odeSolver, out optL0, out nmse);
     92      Problem.OptimizeForEpisodes(trees, problemData, targetVars, latentVariables, random, new[] { forecastEpisode }, 100, numericIntegrationSteps, odeSolver, out optL0, out snmse);
    9393      var predictions = Problem.Integrate(
    9494         trees,
  • branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DynamicalSystemsModelling/3.3/SolutionView.Designer.cs

    r16399 r16400  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.components = new System.ComponentModel.Container();
    48       this.animationTimer = new System.Windows.Forms.Timer(this.components);
    4947      this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
    5048      this.updateButton = new System.Windows.Forms.Button();
     
    5654      this.episodeEndTextbox = new System.Windows.Forms.TextBox();
    5755      this.trackBar = new System.Windows.Forms.TrackBar();
     56      this.errorLabel = new System.Windows.Forms.Label();
    5857      ((System.ComponentModel.ISupportInitialize)(this.trackBar)).BeginInit();
    5958      this.SuspendLayout();
    60       //
    61       // animationTimer
    62       //
    63       this.animationTimer.Interval = 15;
    6459      //
    6560      // tableLayoutPanel
     
    6863            | System.Windows.Forms.AnchorStyles.Left)
    6964            | System.Windows.Forms.AnchorStyles.Right)));
     65      this.tableLayoutPanel.AutoScroll = true;
    7066      this.tableLayoutPanel.ColumnCount = 1;
    7167      this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
    72       this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
    7368      this.tableLayoutPanel.Location = new System.Drawing.Point(0, 109);
    7469      this.tableLayoutPanel.Name = "tableLayoutPanel";
     
    152147      this.trackBar.ValueChanged += new System.EventHandler(this.trackBar_Validated);
    153148      //
     149      // errorLabel
     150      //
     151      this.errorLabel.AutoSize = true;
     152      this.errorLabel.Location = new System.Drawing.Point(190, 35);
     153      this.errorLabel.Name = "errorLabel";
     154      this.errorLabel.Size = new System.Drawing.Size(48, 13);
     155      this.errorLabel.TabIndex = 9;
     156      this.errorLabel.Text = "SNMSE:";
     157      //
    154158      // SolutionView
    155159      //
    156160      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
     161      this.Controls.Add(this.errorLabel);
    157162      this.Controls.Add(this.trackBar);
    158163      this.Controls.Add(this.endLabel);
     
    173178
    174179    #endregion
    175     private System.Windows.Forms.Timer animationTimer;
    176180    private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
    177181    private System.Windows.Forms.Button updateButton;
     
    183187    private System.Windows.Forms.TextBox episodeEndTextbox;
    184188    private System.Windows.Forms.TrackBar trackBar;
     189    private System.Windows.Forms.Label errorLabel;
    185190  }
    186191}
  • branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DynamicalSystemsModelling/3.3/SolutionView.cs

    r16399 r16400  
    7272      // trackBar.Value = predictionEpisode.Start;
    7373
    74       var predictions = Content.Predict(predictionEpisode, forecastHorizon).ToArray();
     74      double snmse;
     75      var predictions = Content.Predict(predictionEpisode, forecastHorizon, out snmse).ToArray();
     76      errorLabel.Text = $"SNMSE: {snmse:e4}";
    7577      var trainingPredictions = predictions.Take(predictionEpisode.Size).ToArray();
    7678      var forecastPredictions = predictions.Skip(predictionEpisode.Size).ToArray();
  • branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DynamicalSystemsModelling/3.3/SolutionView.resx

    r16399 r16400  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120   <metadata name="animationTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    121     <value>17, 17</value>
    122   </metadata>
    123120</root>
Note: See TracChangeset for help on using the changeset viewer.