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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs

    r17451 r17464  
    1717
    1818    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
    19       //Dictionary<string, IList<double>> dict = null;
    2019      var dictTmp = new Dictionary<string, IList>();
    21       /*if (data.Children[0].Value is JObject jObj) {
    22         dict = jObj.ToObject<Dictionary<string, IList<double>>>();
    23         foreach (var x in dict) {
    24           dictTmp.Add(x.Key, (IList)x.Value);
    25         }
    26       } else if(data.Children[0].Value is Dictionary<string, IList<double>> d) {
    27         dict = d;
    28       } else {
    29         dictTmp = (Dictionary<string, IList>)data.Children[0].Value;
    30       }
    31       */
    3220      DoubleNamedMatrixJsonItem matrix = data.Children[0] as DoubleNamedMatrixJsonItem;
    3321      if(matrix != null) {
     
    7462          int r = 0;
    7563          foreach(var rowValue in x.Value) {
     64            // TODO: for integers and bools aswell
    7665            mat[c][r] = (double)rowValue;
    7766            ++r;
Note: See TracChangeset for help on using the changeset viewer.