- Timestamp:
- 03/02/20 15:53:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
r17451 r17464 17 17 18 18 public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) { 19 //Dictionary<string, IList<double>> dict = null;20 19 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 */32 20 DoubleNamedMatrixJsonItem matrix = data.Children[0] as DoubleNamedMatrixJsonItem; 33 21 if(matrix != null) { … … 74 62 int r = 0; 75 63 foreach(var rowValue in x.Value) { 64 // TODO: for integers and bools aswell 76 65 mat[c][r] = (double)rowValue; 77 66 ++r;
Note: See TracChangeset
for help on using the changeset viewer.