- Timestamp:
- 06/14/11 14:00:19 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationSolution.cs
r5809 r6411 20 20 #endregion 21 21 22 using System.Collections.Generic;23 using System.Linq;24 22 using HeuristicLab.Common; 25 23 using HeuristicLab.Core; 26 24 using HeuristicLab.Data; 27 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 using HeuristicLab.Operators; 29 using HeuristicLab.Parameters; 25 using HeuristicLab.Optimization; 30 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Optimization;32 using System;33 27 34 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 69 63 Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue())); 70 64 Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue())); 71 RecalculateResults();65 CalculateResults(); 72 66 } 73 67 … … 76 70 } 77 71 78 protected override void OnModelChanged(EventArgs e) {79 base. OnModelChanged(e);80 RecalculateResults();72 protected override void RecalculateResults() { 73 base.RecalculateResults(); 74 CalculateResults(); 81 75 } 82 76 83 private new void RecalculateResults() {77 private void CalculateResults() { 84 78 ModelLength = Model.SymbolicExpressionTree.Length; 85 79 ModelDepth = Model.SymbolicExpressionTree.Depth; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs
r5975 r6411 20 20 #endregion 21 21 22 using System;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; … … 67 66 Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue())); 68 67 Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue())); 69 RecalculateResults();68 CalculateResults(); 70 69 } 71 70 … … 74 73 } 75 74 76 protected override void OnModelChanged(EventArgs e) {77 base. OnModelChanged(e);78 RecalculateResults();75 protected override void RecalculateResults() { 76 base.RecalculateResults(); 77 CalculateResults(); 79 78 } 80 79 81 private new void RecalculateResults() {80 private void CalculateResults() { 82 81 ModelLength = Model.SymbolicExpressionTree.Length; 83 82 ModelDepth = Model.SymbolicExpressionTree.Depth;
Note: See TracChangeset
for help on using the changeset viewer.