Changeset 16723 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
- Timestamp:
- 03/28/19 16:54:20 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.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. … … 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Attic; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { … … 31 31 /// Represents a symbolic regression model 32 32 /// </summary> 33 [Storable Class]33 [StorableType("2739C33E-4DDB-4285-9DFB-C056D900B2F2")] 34 34 [Item(Name = "Symbolic Regression Model", Description = "Represents a symbolic regression model.")] 35 35 public class SymbolicRegressionModel : SymbolicDataAnalysisModel, ISymbolicRegressionModel { … … 46 46 47 47 [StorableConstructor] 48 protected SymbolicRegressionModel(bool deserializing) 49 : base(deserializing) { 48 protected SymbolicRegressionModel(StorableConstructorFlag _) : base(_) { 50 49 targetVariable = string.Empty; 51 50 } … … 83 82 } 84 83 84 public virtual bool IsProblemDataCompatible(IRegressionProblemData problemData, out string errorMessage) { 85 return RegressionModel.IsProblemDataCompatible(this, problemData, out errorMessage); 86 } 87 88 public override bool IsProblemDataCompatible(IDataAnalysisProblemData problemData, out string errorMessage) { 89 if (problemData == null) throw new ArgumentNullException("problemData", "The provided problemData is null."); 90 var regressionProblemData = problemData as IRegressionProblemData; 91 if (regressionProblemData == null) 92 throw new ArgumentException("The problem data is not a regression problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData"); 93 return IsProblemDataCompatible(regressionProblemData, out errorMessage); 94 } 95 85 96 #region events 86 97 public event EventHandler TargetVariableChanged;
Note: See TracChangeset
for help on using the changeset viewer.