Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/21 16:42:16 (3 years ago)
Author:
dpiringe
Message:

#3026

  • added a first version of a new feature called ResultCollectionPostProcessors, which should transform/process the results of an optimizer run
    • created a new interface IResultCollectionPostProcessor
    • created a new class SymRegPythonPostProcessor, which formats all ISymbolicRegressionSolution with the usage of the SymbolicDataAnalysisExpressionPythonFormatter
    • changed the generation and instantiation of templates to handle this new feature
    • the template files contains a new area PostProcessors
    • added functionality in Runner to use these new type of result processing
    • added a new tab in ExportJsonDialog to configure PostProcessors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs

    r18043 r18046  
    44using System.Drawing;
    55using System.IO;
     6using System.Linq;
    67using System.Windows.Forms;
    78using HeuristicLab.Common;
     9using HeuristicLab.Core;
    810using HeuristicLab.Optimization;
    911using HeuristicLab.PluginInfrastructure;
     
    2022    private IOptimizer Optimizer { get; set; }
    2123    private IList<IJsonItemVM> VMs { get; set; }
     24    private ICheckedItemList<IResultCollectionPostProcessor> PostProcessors { get; set; }
    2225    #endregion
    2326
     
    2730      set {
    2831        content = value;
    29 
     32        //CheckedItemListView
    3033        #region Clear
    3134        VMs = new List<IJsonItemVM>();
     
    3336        treeViewResults.Nodes.Clear();
    3437        #endregion
    35 
    3638        Optimizer = content as IOptimizer;
    3739        if(Optimizer != null) {
     
    5961    public ExportJsonDialog() {
    6062      InitializeComponent();
     63      this.PostProcessors = this.postProcessorListView.Content;
    6164      this.Icon = HeuristicLab.Common.Resources.HeuristicLab.Icon;
    6265      InitCache();
     
    7174      if (FolderBrowserDialog.ShowDialog() == DialogResult.OK) {
    7275        try {
     76          //foreach(var x in PostProcessors.CheckedItems)
     77           
    7378          JsonTemplateGenerator.GenerateTemplate(
    7479            Path.Combine(FolderBrowserDialog.SelectedPath, textBoxTemplateName.Text),
    75             Optimizer, Root);
     80            Optimizer, Root, PostProcessors.CheckedItems.Select(x => x.Value));
    7681          Close();
    7782        } catch (Exception ex) {
Note: See TracChangeset for help on using the changeset viewer.