Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/25/11 16:54:15 (13 years ago)
Author:
mkommend
Message:

#1600: Adapted classification solutions to the same design as used by regression solutions.

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

    r6411 r6589  
    6363      Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue()));
    6464      Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue()));
    65       CalculateResults();
     65      RecalculateResults();
    6666    }
    6767
     
    7171
    7272    protected override void RecalculateResults() {
    73       base.RecalculateResults();
    74       CalculateResults();
    75     }
    76 
    77     private void CalculateResults() {
    7873      ModelLength = Model.SymbolicExpressionTree.Length;
    7974      ModelDepth = Model.SymbolicExpressionTree.Depth;
     75      CalculateResults();
    8076    }
    8177  }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs

    r6411 r6589  
    6666      Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue()));
    6767      Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue()));
    68       CalculateResults();
     68      RecalculateResults();
    6969    }
    7070
     
    7474
    7575    protected override void RecalculateResults() {
    76       base.RecalculateResults();
    7776      CalculateResults();
    78     }
    79 
    80     private void CalculateResults() {
     77      CalculateRegressionResults();
    8178      ModelLength = Model.SymbolicExpressionTree.Length;
    8279      ModelDepth = Model.SymbolicExpressionTree.Depth;
    8380    }
     81
    8482  }
    8583}
Note: See TracChangeset for help on using the changeset viewer.