Changeset 18056 for branches/3026_IntegrationIntoSymSpace
- Timestamp:
- 09/17/21 16:25:19 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Constants.cs
r18055 r18056 8 8 internal const string TemplateName = "TemplateName"; 9 9 internal const string HLFileLocation = "HLFileLocation"; 10 internal const string OptimizerDescription = "OptimizerDescription"; 10 11 internal const string Parameters = "Parameters"; 11 12 internal const string Results = "Results"; … … 15 16 '" + Metadata + @"': { 16 17 '" + TemplateName + @"':'', 17 '" + HLFileLocation + @"':'' 18 '" + HLFileLocation + @"':'', 19 '" + OptimizerDescription + @"':'' 18 20 }, 19 21 '" + Parameters + @"': [], -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
r18045 r18056 28 28 #endregion 29 29 30 public override int Priority => 20; 31 32 public override bool CanConvertType(Type t) => 33 HEAL.Attic.Mapper.StaticCache.GetType(new Guid("EE612297-B1AF-42D2-BF21-AF9A2D42791C")).IsAssignableFrom(t);30 public override int Priority => 20;//20; 31 32 public override bool CanConvertType(Type t) => t == typeof(ValueParameter<IRegressionProblemData>); 33 //HEAL.Attic.Mapper.StaticCache.GetType(new Guid("EE612297-B1AF-42D2-BF21-AF9A2D42791C")).IsAssignableFrom(t); // IRegressionProblemData 34 34 35 35 public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) { 36 37 var tmp = item as IRegressionProblemData; //ModifiableDataset 38 //tmp.InputVariables 39 36 40 37 41 dynamic regressionProblemData = (dynamic)item; … … 141 145 private void SetAllowedInputVariables(dynamic regressionProblemData, StringArrayJsonItem item, IMatrixJsonItem matrix) { 142 146 if (item != null && regressionProblemData is IParameterizedItem p) { 147 143 148 var regProbDataType = ((ParameterizedNamedItem)regressionProblemData).GetType(); //RegressionProblemData 144 149 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/ListJsonItem.cs
r18055 r18056 20 20 21 21 public override void SetJObject(JObject jObject) { 22 TargetTypeGUID = jObject[nameof(IListJsonItem.TargetTypeGUID)].ToString(); 23 var targetType = Mapper.StaticCache.GetType(new Guid(TargetTypeGUID)); 22 var guidJObj = jObject[nameof(IListJsonItem.TargetTypeGUID)]; 24 23 IList<IJsonItem> items = new List<IJsonItem>(); 25 foreach (JObject obj in jObject[nameof(IValueJsonItem.Value)]) { 26 items.Add((IJsonItem)obj.ToObject(targetType)); 24 if (guidJObj != null) { 25 TargetTypeGUID = jObject[nameof(IListJsonItem.TargetTypeGUID)].ToString(); 26 var targetType = Mapper.StaticCache.GetType(new Guid(TargetTypeGUID)); 27 foreach (JObject obj in jObject[nameof(IValueJsonItem.Value)]) { 28 items.Add((IJsonItem)obj.ToObject(targetType)); 29 } 27 30 } 28 31 Value = items.ToArray(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonTemplateGenerator.cs
r18055 r18056 84 84 template[Constants.Metadata][Constants.TemplateName] = templateName; 85 85 template[Constants.Metadata][Constants.HLFileLocation] = hlFilePath; 86 template[Constants.Metadata][Constants.OptimizerDescription] = optimizer.Description; 86 87 template[Constants.Parameters] = parameterItems; 87 88 template[Constants.Results] = resultItems; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/ResultCollectionProcessors/RunCollectionSRSolutionGraphVizFormatter.cs
r18055 r18056 9 9 [StorableType("55A9B87B-65AC-4160-ACA0-53FD1EBB1AB7")] 10 10 public class RunCollectionSRSolutionGraphVizFormatter : RunCollectionSRSolutionFormatter { 11 protected override ISymbolicExpressionTreeStringFormatter Formatter => 12 new Symbolic DataAnalysisExpressionLatexFormatter();11 protected override ISymbolicExpressionTreeStringFormatter Formatter => 12 new SymbolicExpressionTreeGraphvizFormatter(); 13 13 14 14 #region Constructors & Cloning -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Optimization/3.3/RunCollectionModification/RunCollectionValueRemover.cs
r18055 r18056 57 57 public RunCollectionValueRemover() { 58 58 Parameters.Add(new ValueParameter<CheckedItemCollection<StringValue>>("Values", "The result or parameter values to be removed from each run.")); 59 Parameters.Add(new FixedValueParameter<BoolValue>("Invert", "Inverts the filter strategy: Black box <-> Whitebox (Default: Blackbox)", new BoolValue(false)));59 Parameters.Add(new FixedValueParameter<BoolValue>("Invert", "Inverts the filter strategy: Blacklist <-> Whitelist (Default: Blacklist)", new BoolValue(false))); 60 60 } 61 61 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.