Changeset 8635
- Timestamp:
- 09/12/12 12:24:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveEvaluator.cs
r8127 r8635 74 74 var targetValuesEnumerator = targetValues.GetEnumerator(); 75 75 var estimatedValuesEnumerator = estimatedValues.GetEnumerator(); 76 while (targetValuesEnumerator.MoveNext() & &estimatedValuesEnumerator.MoveNext()) {76 while (targetValuesEnumerator.MoveNext() & estimatedValuesEnumerator.MoveNext()) { 77 77 double target = targetValuesEnumerator.Current; 78 78 double estimated = estimatedValuesEnumerator.Current; … … 81 81 i++; 82 82 } 83 if (linearScalingCalculator.ErrorState == OnlineCalculatorError.None && (targetValuesEnumerator.MoveNext() || estimatedValuesEnumerator.MoveNext())) 84 throw new ArgumentException("Number of elements in target and estimated values enumeration do not match."); 85 83 86 double alpha = linearScalingCalculator.Alpha; 84 87 double beta = linearScalingCalculator.Beta; 88 if (linearScalingCalculator.ErrorState != OnlineCalculatorError.None) { 89 alpha = 0.0; 90 beta = 1.0; 91 } 85 92 86 93 //calculate the quality by using the passed online calculator
Note: See TracChangeset
for help on using the changeset viewer.