Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/20 15:53:52 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • Runner now uses SymbolicDataAnalysisExpressionMATLABFormatter to save instances of ISymbolicRegressionSolution
  • refactored user controls for detail view of json items, now they do not inherit from JsonItemBaseControl -> JsonItemBaseControl uses now an extra control
    • this change was made for fluid repositioning of controls (e.g. when no ActualName is present)
Location:
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/HeuristicLab.JsonInterface.App.csproj

    r17453 r17464  
    8181      <Name>HeuristicLab.Core-3.3</Name>
    8282    </ProjectReference>
     83    <ProjectReference Include="..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj">
     84      <Project>{06D4A186-9319-48A0-BADE-A2058D462EEA}</Project>
     85      <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4</Name>
     86    </ProjectReference>
    8387    <ProjectReference Include="..\HeuristicLab.JsonInterface\HeuristicLab.JsonInterface.csproj">
    8488      <Project>{0e3aab5e-f152-44e0-a054-4d9a83ecee08}</Project>
     
    96100      <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    97101      <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
     102    </ProjectReference>
     103    <ProjectReference Include="..\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj">
     104      <Project>{5AC82412-911B-4FA2-A013-EDC5E3F3FCC2}</Project>
     105      <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4</Name>
     106    </ProjectReference>
     107    <ProjectReference Include="..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj">
     108      <Project>{3d28463f-ec96-4d82-afee-38be91a0ca00}</Project>
     109      <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name>
     110    </ProjectReference>
     111    <ProjectReference Include="..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj">
     112      <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project>
     113      <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name>
    98114    </ProjectReference>
    99115    <ProjectReference Include="..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs

    r17453 r17464  
    88using HeuristicLab.Optimization;
    99using HeuristicLab.ParallelEngine;
     10using HeuristicLab.Problems.DataAnalysis.Symbolic;
     11using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression;
    1012using HeuristicLab.SequentialEngine;
    1113using Newtonsoft.Json.Linq;
     
    3941        obj.Add("Run", JToken.FromObject(run.ToString()));
    4042        foreach (var res in run.Results) {
    41           if (allowedResultNames.Contains(res.Key))
    42             obj.Add(res.Key, JToken.FromObject(res.Value.ToString()));
     43          if (allowedResultNames.Contains(res.Key)) {
     44            if (res.Value is ISymbolicRegressionSolution solution) {
     45              var formatter = new SymbolicDataAnalysisExpressionMATLABFormatter();
     46              var x = formatter.Format(solution.Model.SymbolicExpressionTree);
     47              obj.Add(res.Key, JToken.FromObject(x));
     48            } else
     49              obj.Add(res.Key, JToken.FromObject(res.Value.ToString()));
     50          }
    4351        }
    4452      }
Note: See TracChangeset for help on using the changeset viewer.