Changeset 5823 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective
- Timestamp:
- 03/24/11 13:24:09 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveOverfittingAnalyzer.cs
r5809 r5823 85 85 select EvaluatorParameter.ActualValue.Evaluate(childContext, tree, ProblemDataParameter.ActualValue, rows)) 86 86 .ToArray(); 87 double r = alglib.spearmancorr2(trainingQuality, validationQuality); 87 double r = 0.0; 88 try { 89 r = alglib.spearmancorr2(trainingQuality, validationQuality); 90 } 91 catch (alglib.alglibexception) { 92 r = 0.0; 93 } 88 94 89 95 TrainingValidationQualityCorrelationParameter.ActualValue = new DoubleValue(r); 90 91 96 if (TrainingValidationQualityCorrelationTableParameter.ActualValue == null) { 92 97 var dataTable = new DataTable(TrainingValidationQualityCorrelationTableParameter.Name, TrainingValidationQualityCorrelationTableParameter.Description); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectivePearsonRSquaredEvaluator.cs
r5809 r5823 59 59 } 60 60 catch (ArgumentException) { 61 // if R² cannot be calculated because of NaN or ininity elements => return worst possible fitness valu se61 // if R² cannot be calculated because of NaN or ininity elements => return worst possible fitness value 62 62 return 0.0; 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.