Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/13/08 14:35:27 (16 years ago)
Author:
gkronber
Message:

improved the condition for the special case by removing the predicate that estimated is smaller then original or larger than original because this is always true when the error is <-1 or +1 resp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/Evaluation/ClassificationMeanSquaredErrorEvaluator.cs

    r482 r511  
    6565          // on the lower end and upper end only add linear error if the absolute error is larger than 1
    6666          // the error>1.0 constraint is needed for balance because in the interval ]-1, 1[ the squared error is smaller than the absolute error
    67           if(error < -1.0 && IsEqual(original, classesArr[0]) && estimated < classesArr[0] ||
    68             error > 1.0 && IsEqual(original, classesArr[classesArr.Length - 1]) && estimated > classesArr[classesArr.Length - 1]) {
     67          if((IsEqual(original, classesArr[0]) && error < -1.0) ||
     68            (IsEqual(original, classesArr[classesArr.Length - 1]) && error > 1.0)) {
    6969            errorsSquaredSum += Math.Abs(error); // only add linear error below the smallest class or above the largest class
    7070          } else {
Note: See TracChangeset for help on using the changeset viewer.