Changeset 13221 for branches/DataAnalysis.ComplexityAnalyzer/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
- Timestamp:
- 11/17/15 15:57:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.ComplexityAnalyzer/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r12130 r13221 64 64 } 65 65 66 public double ModelComplexity {67 get { return ((DoubleValue)this["Complexity"].Value).Value; }68 private set { ((DoubleValue)this["Complexity"].Value).Value = value; }69 }70 71 66 private ResultCollection EstimationLimitsResultCollection { 72 67 get { return (ResultCollection)this[EstimationLimitsResultsResultName].Value; } … … 123 118 estimationLimitResults.Add(new Result(TestNaNEvaluationsResultName, "", new IntValue())); 124 119 Add(new Result(EstimationLimitsResultsResultName, "Results concerning the estimation limits of symbolic regression solution", estimationLimitResults)); 125 Add(new Result("Complexity", "", new DoubleValue()));126 120 RecalculateResults(); 127 121 } … … 133 127 [StorableHook(HookType.AfterDeserialization)] 134 128 private void AfterDeserialization() { 135 if (!ContainsKey("Complexity")) Add(new Result("Complexity", "", new DoubleValue()));136 129 if (!ContainsKey(EstimationLimitsResultsResultName)) { 137 130 ResultCollection estimationLimitResults = new ResultCollection(); … … 156 149 ModelLength = Model.SymbolicExpressionTree.Length; 157 150 ModelDepth = Model.SymbolicExpressionTree.Depth; 158 ModelComplexity = SymbolicDataAnalysisModelComplexityAnalyzer.CalculateComplexity(Model.SymbolicExpressionTree.Root.GetSubtree(0).GetSubtree(0));159 151 160 152 EstimationLimits.Lower = Model.LowerEstimationLimit;
Note: See TracChangeset
for help on using the changeset viewer.