Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/19 13:43:03 (5 years ago)
Author:
gkronber
Message:

#2925: write back optimized constants to trees

File:
1 edited

Legend:

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

    r16600 r16602  
    88using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    99using HeuristicLab.Problems.DataAnalysis;
     10using HeuristicLab.Problems.DataAnalysis.Symbolic;
    1011using HeuristicLab.Random;
    1112
     
    8889      var forecastEpisode = new IntRange(episode.Start, episode.End + forecastHorizon);
    8990
    90       double[] optL0;
    9191      var random = new FastRandom(12345);
    92       Problem.OptimizeForEpisodes(trees, problemData, targetVars, latentVariables, random, new[] { forecastEpisode }, 100, numericIntegrationSteps, odeSolver, out optL0, out snmse);
     92      snmse = Problem.OptimizeForEpisodes(trees, problemData, targetVars, latentVariables, random, new[] { forecastEpisode }, 100, numericIntegrationSteps, odeSolver);
    9393      var optimizationData = new Problem.OptimizationData(trees, targetVars, problemData, null, new[] { forecastEpisode }, numericIntegrationSteps, latentVariables, odeSolver);
    94       var predictions = Problem.Integrate(optimizationData, optL0).ToArray();
     94
     95
     96      var theta = Problem.ExtractParametersFromTrees(trees);
     97
     98      var predictions = Problem.Integrate(optimizationData, theta).ToArray();
    9599      return predictions.Select(p => p.Select(pi => pi.Item1).ToArray()).ToArray();
    96100    }
Note: See TracChangeset for help on using the changeset viewer.