Changeset 511 for trunk/sources/HeuristicLab.StructureIdentification
- Timestamp:
- 08/13/08 14:35:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Evaluation/ClassificationMeanSquaredErrorEvaluator.cs
r482 r511 65 65 // on the lower end and upper end only add linear error if the absolute error is larger than 1 66 66 // 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)) { 69 69 errorsSquaredSum += Math.Abs(error); // only add linear error below the smallest class or above the largest class 70 70 } else {
Note: See TracChangeset
for help on using the changeset viewer.