Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5274


Ignore:
Timestamp:
01/11/11 14:24:24 (14 years ago)
Author:
cfischer
Message:

Fixed calculation of R², MSE and rel. Error for training best classification solution #1369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/Analyzer/TrainingBestSymbolicClassificationSolutionAnalyzer.cs

    r5273 r5274  
    337337          while (originalEnumerator.MoveNext() & estimatedEnumerator.MoveNext()) {
    338338            accuracyEvaluator.Add(originalEnumerator.Current, estimatedEnumerator.Current);
     339          }
     340          originalEnumerator = trainingValues.GetEnumerator();
     341          estimatedEnumerator = solution.EstimatedTrainingValues.GetEnumerator();
     342          while (originalEnumerator.MoveNext() & estimatedEnumerator.MoveNext()) {
    339343            mseEvaluator.Add(originalEnumerator.Current, estimatedEnumerator.Current);
    340344            r2Evaluator.Add(originalEnumerator.Current, estimatedEnumerator.Current);
     
    357361          while (originalEnumerator.MoveNext() & estimatedEnumerator.MoveNext()) {
    358362            accuracyEvaluator.Add(originalEnumerator.Current, estimatedEnumerator.Current);
     363          }
     364          originalEnumerator = testValues.GetEnumerator();
     365          estimatedEnumerator = solution.EstimatedTestValues.GetEnumerator();
     366          while (originalEnumerator.MoveNext() & estimatedEnumerator.MoveNext()) {
    359367            mseEvaluator.Add(originalEnumerator.Current, estimatedEnumerator.Current);
    360368            r2Evaluator.Add(originalEnumerator.Current, estimatedEnumerator.Current);
Note: See TracChangeset for help on using the changeset viewer.