Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/16 13:02:34 (9 years ago)
Author:
mkommend
Message:

#2574: Fixed F1Score- and ConfusionMatrixCalculator.

File:
1 edited

Legend:

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

    r13103 r13585  
    2727  public class ConfusionMatrixCalculator {
    2828    public static double[,] Calculate(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) {
     29      if (!originalValues.Any() || !estimatedValues.Any()) {
     30        errorState = OnlineCalculatorError.InsufficientElementsAdded;
     31        return null;
     32      }
    2933
    3034      Dictionary<double, int> classValueIndexMapping = new Dictionary<double, int>();
Note: See TracChangeset for help on using the changeset viewer.