Changeset 2136 for trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalMeanSquaredErrorEvaluator.cs
- Timestamp:
- 07/06/09 17:12:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalMeanSquaredErrorEvaluator.cs
r1902 r2136 44 44 45 45 public override double Evaluate(double[,] values) { 46 double quality = SimpleMSEEvaluator.Calculate(values); 47 48 if (double.IsNaN(quality) || double.IsInfinity(quality)) { 49 quality = double.MaxValue; 46 try { 47 return SimpleMSEEvaluator.Calculate(values); 50 48 } 51 52 return quality; 49 catch (ArgumentException) { 50 return double.PositiveInfinity; 51 } 53 52 } 54 53 }
Note: See TracChangeset
for help on using the changeset viewer.