Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/AccuracyMaximizationThresholdCalculator.cs

    r14185 r14927  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Problems.DataAnalysis {
     
    3131  /// Represents a threshold calculator that maximizes the weighted accuracy of the classifcation model.
    3232  /// </summary>
    33   [StorableClass]
     33  [StorableType("bb9b9036-7843-4fdd-8544-6191eed7bd21")]
    3434  [Item("AccuracyMaximizationThresholdCalculator", "Represents a threshold calculator that maximizes the weighted accuracy of the classifcation model.")]
    3535  public class AccuracyMaximizationThresholdCalculator : ThresholdCalculator {
     
    9393                classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, classValues[i]);
    9494            }
    95               //all negatives
     95            //all negatives
    9696            else {
    9797              //false positive
     
    116116            seriesOfEqualClassificationScores = true;
    117117          }
    118             //equal classification scores => if seriesOfEqualClassifcationScores == true update highest threshold
     118          //equal classification scores => if seriesOfEqualClassifcationScores == true update highest threshold
    119119          else if (Math.Abs(classificationScore - bestClassificationScore) < double.Epsilon && seriesOfEqualClassificationScores)
    120120            highestBestThreshold = actualThreshold;
Note: See TracChangeset for help on using the changeset viewer.