Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/AccuracyMaximizationThresholdCalculator.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/AccuracyMaximizationThresholdCalculator.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis { … … 31 31 /// Represents a threshold calculator that maximizes the weighted accuracy of the classifcation model. 32 32 /// </summary> 33 [Storable Class]33 [StorableType("bb9b9036-7843-4fdd-8544-6191eed7bd21")] 34 34 [Item("AccuracyMaximizationThresholdCalculator", "Represents a threshold calculator that maximizes the weighted accuracy of the classifcation model.")] 35 35 public class AccuracyMaximizationThresholdCalculator : ThresholdCalculator { … … 93 93 classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, classValues[i]); 94 94 } 95 95 //all negatives 96 96 else { 97 97 //false positive … … 116 116 seriesOfEqualClassificationScores = true; 117 117 } 118 118 //equal classification scores => if seriesOfEqualClassifcationScores == true update highest threshold 119 119 else if (Math.Abs(classificationScore - bestClassificationScore) < double.Epsilon && seriesOfEqualClassificationScores) 120 120 highestBestThreshold = actualThreshold;
Note: See TracChangeset
for help on using the changeset viewer.