Changeset 10750 for branches/DataAnalysis.ComplexityAnalyzer/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
- Timestamp:
- 04/15/14 13:18:14 (10 years ago)
- Location:
- branches/DataAnalysis.ComplexityAnalyzer/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.ComplexityAnalyzer/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r9456 r10750 63 63 } 64 64 65 public double ModelComplexity { 66 get { return ((DoubleValue)this["Complexity"].Value).Value; } 67 private set { ((DoubleValue)this["Complexity"].Value).Value = value; } 68 } 69 65 70 private ResultCollection EstimationLimitsResultCollection { 66 71 get { return (ResultCollection)this[EstimationLimitsResultsResultName].Value; } … … 114 119 estimationLimitResults.Add(new Result(TestNaNEvaluationsResultName, "", new IntValue())); 115 120 Add(new Result(EstimationLimitsResultsResultName, "Results concerning the estimation limits of symbolic regression solution", estimationLimitResults)); 116 121 Add(new Result("Complexity", "", new DoubleValue())); 117 122 RecalculateResults(); 118 123 } … … 124 129 [StorableHook(HookType.AfterDeserialization)] 125 130 private void AfterDeserialization() { 131 if (!ContainsKey("Complexity")) Add(new Result("Complexity", "", new DoubleValue())); 126 132 if (!ContainsKey(EstimationLimitsResultsResultName)) { 127 133 ResultCollection estimationLimitResults = new ResultCollection(); … … 146 152 ModelLength = Model.SymbolicExpressionTree.Length; 147 153 ModelDepth = Model.SymbolicExpressionTree.Depth; 154 ModelComplexity = SymbolicDataAnalysisModelComplexityAnalyzer.CalculateComplexity(Model.SymbolicExpressionTree.Root.GetSubtree(0).GetSubtree(0)); 148 155 149 156 EstimationLimits.Lower = Model.LowerEstimationLimit;
Note: See TracChangeset
for help on using the changeset viewer.