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