Changeset 5962
- Timestamp:
- 04/06/11 10:45:21 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs
r5942 r5962 107 107 Add(new Result(TrainingRelativeErrorResultName, "Average of the relative errors of the model output and the actual values on the training partition", new PercentValue())); 108 108 Add(new Result(TestRelativeErrorResultName, "Average of the relative errors of the model output and the actual values on the test partition", new PercentValue())); 109 Add(new Result(TrainingNormalizedMeanSquaredErrorResultName, " ", new DoubleValue()));110 Add(new Result(TestNormalizedMeanSquaredErrorResultName, " ", new DoubleValue()));109 Add(new Result(TrainingNormalizedMeanSquaredErrorResultName, "Normalized mean of squared errors of the model on the training partition", new DoubleValue())); 110 Add(new Result(TestNormalizedMeanSquaredErrorResultName, "Normalized mean of squared errors of the model on the test partition", new DoubleValue())); 111 111 112 112 RecalculateResults(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineNormalizedMeanSquaredErrorCalculator.cs
r5945 r5962 68 68 OnlineNormalizedMeanSquaredErrorCalculator normalizedMSECalculator = new OnlineNormalizedMeanSquaredErrorCalculator(); 69 69 70 //needed because otherwise the normalizedMSECalculator is in ErrorState.InsufficientValuesAdded 71 if (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) { 72 double estimated = secondEnumerator.Current; 73 double original = firstEnumerator.Current; 74 normalizedMSECalculator.Add(original, estimated); 75 } 76 70 77 // always move forward both enumerators (do not use short-circuit evaluation!) 71 78 while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) {
Note: See TracChangeset
for help on using the changeset viewer.