Changeset 14529


Ignore:
Timestamp:
12/25/16 16:54:47 (3 years ago)
Author:
gkronber
Message:

#2529: updated target result values in unit test (previously the interpreter was buggy)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPTimeSeriesSampleTest.cs

    r14185 r14529  
    5050      SamplesUtils.RunAlgorithm(osga);
    5151
    52       Assert.AreEqual(0.020952753415199643, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8);
    53       Assert.AreEqual(0.023220938866319357, SamplesUtils.GetDoubleResult(osga, "CurrentAverageQuality"), 1E-8);
    54       Assert.AreEqual(0.023716788824595391, SamplesUtils.GetDoubleResult(osga, "CurrentWorstQuality"), 1E-8);
    55       Assert.AreEqual(48200, SamplesUtils.GetIntResult(osga, "EvaluatedSolutions"));
     52      Assert.AreEqual(0.015441526903606416, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8);
     53      Assert.AreEqual(0.017420834241279298, SamplesUtils.GetDoubleResult(osga, "CurrentAverageQuality"), 1E-8);
     54      Assert.AreEqual(0.065195703753298972, SamplesUtils.GetDoubleResult(osga, "CurrentWorstQuality"), 1E-8);
     55      Assert.AreEqual(92000, SamplesUtils.GetIntResult(osga, "EvaluatedSolutions"));
    5656    }
    5757
     
    6363      problem.MaximumSymbolicExpressionTreeDepth.Value = 12;
    6464      problem.EvaluatorParameter.Value.HorizonParameter.Value.Value = 10;
     65      problem.ApplyLinearScaling.Value = true;
    6566
    6667      foreach (var symbol in problem.SymbolicExpressionTreeGrammar.Symbols) {
Note: See TracChangeset for help on using the changeset viewer.