Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8684


Ignore:
Timestamp:
09/23/12 12:46:17 (12 years ago)
Author:
gkronber
Message:

#1902 fixed a bug related to the virtual call to RecalculateResults in the constructor of DiscriminantFunctionClassificationSolution

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs

    r7259 r8684  
    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       RecalculateResults();
     68      CalculateSymbolicDiscriminantFunctionClassificationResults();
    6969    }
    7070
     
    7373    }
    7474
    75     protected override void RecalculateResults() {
     75    private void CalculateSymbolicDiscriminantFunctionClassificationResults() {
    7676      CalculateResults();
    7777      CalculateRegressionResults();
     
    7979      ModelDepth = Model.SymbolicExpressionTree.Depth;
    8080    }
     81
     82    protected override void RecalculateResults() {
     83      CalculateSymbolicDiscriminantFunctionClassificationResults();
     84    }
    8185  }
    8286}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationSolution.cs

    r8683 r8684  
    5151      valueEvaluationCache = new Dictionary<int, double>();
    5252      classValueEvaluationCache = new Dictionary<int, double>();
    53       RecalculateResults();
     53      CalculateDiscriminantFunctionClassificationResults();
    5454    }
    5555
     
    118118    }
    119119
    120     protected override void RecalculateResults() {
     120
     121    private void CalculateDiscriminantFunctionClassificationResults() {
    121122      CalculateResults();
    122123      CalculateRegressionResults();
    123124    }
     125
     126    protected override void RecalculateResults() {
     127      CalculateDiscriminantFunctionClassificationResults();
     128    }
    124129  }
    125130}
Note: See TracChangeset for help on using the changeset viewer.