Changeset 3485 for trunk/sources
- Timestamp:
- 04/22/10 08:53:04 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 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 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
r3462 r3485 33 33 public sealed class Constant : Symbol { 34 34 #region Propeties 35 [Storable] 35 36 private double minValue; 36 37 public double MinValue { … … 38 39 set { minValue = value; } 39 40 } 41 [Storable] 40 42 private double maxValue; 41 43 public double MaxValue { … … 51 53 return new ConstantTreeNode(this); 52 54 } 55 56 public override IDeepCloneable Clone(Cloner cloner) { 57 Constant clone = (Constant) base.Clone(cloner); 58 clone.minValue = minValue; 59 clone.maxValue = maxValue; 60 return clone; 61 } 53 62 } 54 63 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/ConstantTreeNode.cs
r3465 r3485 41 41 set { constantValue = value; } 42 42 } 43 44 private ConstantTreeNode() : base() { } 45 43 46 // copy constructor 44 47 private ConstantTreeNode(ConstantTreeNode original) -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs
r3462 r3485 36 36 public sealed class Variable : Symbol { 37 37 #region Properties 38 [Storable] 38 39 private double weightNu; 39 [Storable]40 40 public double WeightNu { 41 41 get { return weightNu; } 42 42 set { weightNu = value; } 43 43 } 44 [Storable] 44 45 private double weightSigma; 45 [Storable]46 46 public double WeightSigma { 47 47 get { return weightSigma; } … … 51 51 } 52 52 } 53 [Storable] 53 54 private List<string> variableNames; 54 [Storable]55 55 public IEnumerable<string> VariableNames { 56 56 get { return variableNames; } … … 72 72 return new VariableTreeNode(this); 73 73 } 74 75 public override IDeepCloneable Clone(Cloner cloner) { 76 Variable clone = (Variable)base.Clone(cloner); 77 clone.weightNu = weightNu; 78 clone.weightSigma = weightSigma; 79 clone.variableNames = new List<string>(variableNames); 80 return clone; 81 } 74 82 } 75 83 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/VariableTreeNode.cs
r3465 r3485 34 34 get { return (Variable)base.Symbol; } 35 35 } 36 [Storable] 36 37 private double weight; 37 [Storable]38 38 public double Weight { 39 39 get { return weight; } 40 40 set { weight = value; } 41 41 } 42 [Storable] 42 43 private string variableName; 43 [Storable]44 44 public string VariableName { 45 45 get { return variableName; } 46 46 set { variableName = value; } 47 47 } 48 49 50 private VariableTreeNode() { } 48 51 49 52 // copy constructor
Note: See TracChangeset
for help on using the changeset viewer.