Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11686


Ignore:
Timestamp:
12/16/14 12:18:00 (10 years ago)
Author:
ehopf
Message:

#2278: Added missing Exception descriptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Classification-Extensions/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationPerformanceMeasures.cs

    r11685 r11686  
    139139      if (!string.IsNullOrWhiteSpace(ClassificationPositiveClassName)
    140140              && !ClassificationPositiveClassName.Equals(trainingPerformanceCalculator.PositiveClassName))
    141         throw new ArgumentException();
     141        throw new ArgumentException("Classification positive class of the training data doesn't match with the data of test partition.");
    142142      ClassificationPositiveClassName = trainingPerformanceCalculator.PositiveClassName;
    143143      TrainingTruePositiveRate = trainingPerformanceCalculator.TruePositiveRate;
     
    152152      if (!string.IsNullOrWhiteSpace(ClassificationPositiveClassName)
    153153                && !ClassificationPositiveClassName.Equals(testPerformanceCalculator.PositiveClassName))
    154         throw new ArgumentException();
     154        throw new ArgumentException("Classification positive class of the test data doesn't match with the data of training partition.");
    155155      ClassificationPositiveClassName = testPerformanceCalculator.PositiveClassName;
    156156      TestTruePositiveRate = testPerformanceCalculator.TruePositiveRate;
Note: See TracChangeset for help on using the changeset viewer.