Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/12 15:08:13 (13 years ago)
Author:
sforsten
Message:

#1776:

  • bug fix in NeighbourhoodWeightCalculator
  • added GetConfidence method to IClassificationEnsembleSolutionWeightCalculator
  • adjusted the confidence column in ClassificationEnsembleSolutionEstimatedClassValuesView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/WeightCalculators/DiscriminantClassificationWeightCalculator.cs

    r7559 r7562  
    8282      }
    8383    }
     84
     85    public sealed override double GetConfidence(IEnumerable<IClassificationSolution> solutions, int index, double estimatedClassValue) {
     86      if (solutions.Count() < 1 || !solutions.All(x => x is IDiscriminantFunctionClassificationSolution))
     87        return double.NaN;
     88
     89      IEnumerable<IDiscriminantFunctionClassificationSolution> discriminantSolutions = solutions.Cast<IDiscriminantFunctionClassificationSolution>();
     90
     91      return GetDiscriminantConfidence(discriminantSolutions, index, estimatedClassValue);
     92    }
     93
     94    protected virtual double GetDiscriminantConfidence(IEnumerable<IDiscriminantFunctionClassificationSolution> solutions, int index, double estimatedClassValue) {
     95      return base.GetConfidence(solutions, index, estimatedClassValue);
     96    }
    8497  }
    8598}
Note: See TracChangeset for help on using the changeset viewer.