Ignore:
Timestamp:
11/03/15 07:12:27 (7 years ago)
Author:
gkronber
Message:

#1998: code simplification of ConfusionMatrixCalculator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/FOneScoreCalculator.cs

    r13102 r13103  
    2828    public static double Calculate(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) {
    2929      if (originalValues.Distinct().Skip(2).Any()) {
     30        // TODO: we could use ClassificationPerformanceMeasuresCalculator instead of the ConfusionMatrixCalculator below to handle multi-class problems
    3031        throw new ArgumentException("F1 score can only be calculated for binary classification.");
    3132      }
Note: See TracChangeset for help on using the changeset viewer.