Changeset 13585 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/FOneScoreCalculator.cs
- Timestamp:
- 02/04/16 13:02:34 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/FOneScoreCalculator.cs
r13103 r13585 36 36 return double.NaN; 37 37 } 38 //only one class has been present => F1 score cannot be calculated 39 if (confusionMatrix.GetLength(0) != 2 || confusionMatrix.GetLength(1) != 2) { 40 return double.NaN; 41 } 42 38 43 return CalculateFOne(confusionMatrix); 39 44 }
Note: See TracChangeset
for help on using the changeset viewer.