Changeset 16723 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Symbolic/Model.cs
- Timestamp:
- 03/28/19 16:54:20 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Symbolic/Model.cs
r16692 r16723 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using System.Linq; … … 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Attic; 28 29 using HeuristicLab.Problems.DataAnalysis.Symbolic; 29 30 … … 32 33 /// Represents a symbolic trading model 33 34 /// </summary> 34 [Storable Class]35 [StorableType("EDBE6BAD-B331-4301-AA8C-234196942DF4")] 35 36 [Item(Name = "Model (symbolic trading)", Description = "Represents a symbolic trading model.")] 36 37 public class Model : SymbolicDataAnalysisModel, IModel { 37 38 38 39 [StorableConstructor] 39 protected Model( bool deserializing) : base(deserializing) { }40 protected Model(StorableConstructorFlag _) : base(_) { } 40 41 protected Model(Model original, Cloner cloner) 41 42 : base(original, cloner) { } … … 52 53 return GetSignals(interpreter.GetSymbolicExpressionTreeValues(tree, dataset, rows)); 53 54 } 55 56 public override bool IsProblemDataCompatible(IDataAnalysisProblemData problemData, out string errorMessage) { 57 if (problemData == null) throw new ArgumentNullException("problemData", "The provided problemData is null."); 58 return IsDatasetCompatible(problemData.Dataset, out errorMessage); 59 } 60 54 61 55 62 // Transforms an enumerable of real values to an enumerable of trading signals (buy(1) / hold(0) / sell(-1))
Note: See TracChangeset
for help on using the changeset viewer.