Changeset 6011 for branches/histogram/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 04/15/11 14:54:43 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 5962-5963,5971-5972,5975-5976,5983-5984,5987,5993,5997-5998,6002-6003,6009
- Property svn:mergeinfo changed
-
branches/histogram/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis (added) merged: 5962-5963
- Property svn:mergeinfo changed
-
branches/histogram/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs
r5942 r6011 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(); -
branches/histogram/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineNormalizedMeanSquaredErrorCalculator.cs
r5945 r6011 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()) { -
branches/histogram/HeuristicLab.Problems.DataAnalysis/3.4/Tests/OnlineCalculatorPerformanceTest.cs
r5952 r6011 75 75 var twister = new MersenneTwister(31415); 76 76 var dataset = CreateRandomDataset(twister, Rows, Columns); 77 var errorState = new OnlineCalculatorError();77 OnlineCalculatorError errorState = OnlineCalculatorError.None; ; 78 78 79 79 Stopwatch watch = new Stopwatch(); … … 81 81 for (int i = 0; i < Repetitions; i++) { 82 82 double value = calculateFunc(dataset.GetEnumeratedVariableValues(0), dataset.GetEnumeratedVariableValues(1), out errorState); 83 84 83 } 84 Assert.AreEqual(errorState, OnlineCalculatorError.None); 85 85 watch.Stop(); 86 86
Note: See TracChangeset
for help on using the changeset viewer.