Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/18 10:44:51 (6 years ago)
Author:
fholzing
Message:

#2904: Refactored RegressionSolutionVariableImpactsCalculator. We don't dependent on the solution anymore. The impact can be calculated for a single variable. The calculator can be chosen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2904_CalculateImpacts/3.4/OnlineCalculators/OnlineAccuracyCalculator.cs

    r15583 r15831  
    2929    private int correctlyClassified;
    3030    private int n;
    31     public double Accuracy {
    32       get {
     31    public double Accuracy
     32    {
     33      get
     34      {
    3335        return correctlyClassified / (double)n;
    3436      }
     
    5355    #region IOnlineCalculator Members
    5456    private OnlineCalculatorError errorState;
    55     public OnlineCalculatorError ErrorState {
     57    public OnlineCalculatorError ErrorState
     58    {
    5659      get { return errorState; }
    5760    }
    58     public double Value {
     61    public double Value
     62    {
    5963      get { return Accuracy; }
    6064    }
     
    103107    }
    104108
     109    public double CalculateValue(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) {
     110      return Calculate(originalValues, estimatedValues, out errorState);
     111    }
    105112  }
    106113}
Note: See TracChangeset for help on using the changeset viewer.