Changeset 13103 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/FOneScoreCalculator.cs
- Timestamp:
- 11/03/15 07:12:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/FOneScoreCalculator.cs
r13102 r13103 28 28 public static double Calculate(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) { 29 29 if (originalValues.Distinct().Skip(2).Any()) { 30 // TODO: we could use ClassificationPerformanceMeasuresCalculator instead of the ConfusionMatrixCalculator below to handle multi-class problems 30 31 throw new ArgumentException("F1 score can only be calculated for binary classification."); 31 32 }
Note: See TracChangeset
for help on using the changeset viewer.