- Timestamp:
- 04/22/10 08:53:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionSolution.cs
r3462 r3485 36 36 [StorableClass] 37 37 public sealed class SymbolicRegressionSolution : DataAnalysisSolution { 38 [Storable] 38 39 private SymbolicRegressionModel model; 39 40 public SymbolicRegressionModel Model { … … 52 53 : base(problemData) { 53 54 this.model = model; 54 RecalculateEstimatedValues();55 55 } 56 56 … … 75 75 public override IEnumerable<double> EstimatedValues { 76 76 get { 77 if (estimatedValues == null) RecalculateEstimatedValues(); 77 78 return estimatedValues.AsEnumerable(); 78 79 } … … 81 82 public override IEnumerable<double> EstimatedTrainingValues { 82 83 get { 84 if (estimatedValues == null) RecalculateEstimatedValues(); 83 85 int start = ProblemData.TrainingSamplesStart.Value; 84 86 int n = ProblemData.TrainingSamplesEnd.Value - start; … … 89 91 public override IEnumerable<double> EstimatedTestValues { 90 92 get { 93 if (estimatedValues == null) RecalculateEstimatedValues(); 91 94 int start = ProblemData.TestSamplesStart.Value; 92 95 int n = ProblemData.TestSamplesEnd.Value - start; … … 94 97 } 95 98 } 99 100 public override IDeepCloneable Clone(Cloner cloner) { 101 SymbolicRegressionSolution clone = (SymbolicRegressionSolution)base.Clone(cloner); 102 clone.model = (SymbolicRegressionModel)model.Clone(cloner); 103 return clone; 104 } 96 105 } 97 106 }
Note: See TracChangeset
for help on using the changeset viewer.