Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/30/17 16:57:38 (8 years ago)
Author:
mkommend
Message:

#2672: Merged r14293,r14294,r14295,r14372,r14376,r14465 into stable.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.DataAnalysis

  • stable/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/ClassificationPerformanceMeasuresCalculator.cs

    r14186 r14801  
    2323using System.Collections.Generic;
    2424using HeuristicLab.Common;
    25 using HeuristicLab.Problems.DataAnalysis.OnlineCalculators;
    2625
    2726namespace HeuristicLab.Problems.DataAnalysis {
    28   public class ClassificationPerformanceMeasuresCalculator {
     27  public class ClassificationPerformanceMeasuresCalculator : DeepCloneable {
    2928
    3029    public ClassificationPerformanceMeasuresCalculator(string positiveClassName, double positiveClassValue) {
     
    3231      this.positiveClassValue = positiveClassValue;
    3332      Reset();
     33    }
     34
     35    protected ClassificationPerformanceMeasuresCalculator(ClassificationPerformanceMeasuresCalculator original, Cloner cloner)
     36      : base(original, cloner) {
     37      positiveClassName = original.positiveClassName;
     38      positiveClassValue = original.positiveClassValue;
     39      truePositiveCount = original.truePositiveCount;
     40      falsePositiveCount = original.falsePositiveCount;
     41      trueNegativeCount = original.trueNegativeCount;
     42      falseNegativeCount = original.falseNegativeCount;
     43      errorState = original.errorState;
     44    }
     45    public override IDeepCloneable Clone(Cloner cloner) {
     46      return new ClassificationPerformanceMeasuresCalculator(this, cloner);
    3447    }
    3548
Note: See TracChangeset for help on using the changeset viewer.