Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/12 13:27:40 (12 years ago)
Author:
mkommend
Message:

#1915:

  • Corrected class names and class values caching in ClassificationProblemData
  • Removed caching of classification penalties
  • Corrected AccuracyMaximizationThresholdCalculator (retrieving of penalties was switched)
  • Added asserts for the achieved accuracy to the classification sample unit test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs

    r8482 r8554  
    343343      Assert.AreEqual(100.62175156249987, GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    344344      Assert.AreEqual(100900, GetIntResult(ga, "EvaluatedSolutions"));
     345      var bestTrainingSolution = (IClassificationSolution)ga.Results["Best training solution"].Value;
     346      Assert.AreEqual(0.80625, bestTrainingSolution.TrainingAccuracy, 1E-8);
     347      Assert.AreEqual(0.782608695652174, bestTrainingSolution.TestAccuracy, 1E-8);
    345348    }
    346349
Note: See TracChangeset for help on using the changeset viewer.