Changeset 13639
- Timestamp:
- 03/02/16 14:45:17 (9 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13585
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis merged: 13585
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/ConfusionMatrixCalculator.cs
r13156 r13639 27 27 public class ConfusionMatrixCalculator { 28 28 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 } 29 33 30 34 Dictionary<double, int> classValueIndexMapping = new Dictionary<double, int>(); -
stable/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/FOneScoreCalculator.cs
r13156 r13639 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.