- Timestamp:
- 03/02/20 15:53:52 (4 years ago)
- 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 81 81 <Name>HeuristicLab.Core-3.3</Name> 82 82 </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> 83 87 <ProjectReference Include="..\HeuristicLab.JsonInterface\HeuristicLab.JsonInterface.csproj"> 84 88 <Project>{0e3aab5e-f152-44e0-a054-4d9a83ecee08}</Project> … … 96 100 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project> 97 101 <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> 98 114 </ProjectReference> 99 115 <ProjectReference Include="..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs
r17453 r17464 8 8 using HeuristicLab.Optimization; 9 9 using HeuristicLab.ParallelEngine; 10 using HeuristicLab.Problems.DataAnalysis.Symbolic; 11 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; 10 12 using HeuristicLab.SequentialEngine; 11 13 using Newtonsoft.Json.Linq; … … 39 41 obj.Add("Run", JToken.FromObject(run.ToString())); 40 42 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 } 43 51 } 44 52 }
Note: See TracChangeset
for help on using the changeset viewer.