Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/11 14:42:45 (13 years ago)
Author:
mkommend
Message:

#1418: Adapted new ProblemData classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/ClassificationProblemData.cs

    r5559 r5579  
    288288    public void SetClassificationPenalty(double correctClassValue, double estimatedClassValue, double penalty) {
    289289      var key = Tuple.Create(correctClassValue, estimatedClassValue);
    290       if (misclassificationMatrix[key] != penalty) {
     290      if (!misclassificationMatrix.ContainsKey(key) || misclassificationMatrix[key] != penalty) {
    291291        misclassificationMatrix[key] = penalty;
    292292        OnClassificationPenaltyChanged();
Note: See TracChangeset for help on using the changeset viewer.