Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12798


Ignore:
Timestamp:
07/22/15 10:44:48 (9 years ago)
Author:
gkronber
Message:

#2435: quick fix for new result values in unit tests because of update to alglib 3.9 (version increment of HeuristicLab.Algorithms.DataAnalysis?)

Location:
trunk/sources/HeuristicLab.Tests
Files:
3 edited

Legend:

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

    r12012 r12798  
    5050      gpr.Seed = 1618551877;
    5151      SamplesUtils.RunAlgorithm(gpr);
    52       Assert.AreEqual(-940.39914958616748, SamplesUtils.GetDoubleResult(gpr, "NegativeLogLikelihood"));
    53       Assert.AreEqual(0.995614091354263, SamplesUtils.GetDoubleResult(gpr, "Training R²"));
     52      Assert.AreEqual(-940.206256787095, SamplesUtils.GetDoubleResult(gpr, "NegativeLogLikelihood"), 1E-8);
     53      Assert.AreEqual(0.995598837993128, SamplesUtils.GetDoubleResult(gpr, "Training R²"), 1E-8);
    5454    }
    5555
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchRFClassificationScriptTest.cs

    r12012 r12798  
    5858      var bestSolution = ScriptingUtils.GetVariable<IClassificationSolution>(script, BestSolutionVariableName);
    5959      Assert.AreEqual(0.85179407176287, bestSolution.TrainingAccuracy, 1E-8);
    60       Assert.AreEqual(0.81875, bestSolution.TestAccuracy, 1E-8);
     60      Assert.AreEqual(0.825, bestSolution.TestAccuracy, 1E-8);
    6161    }
    6262
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchRFRegressionScriptTest.cs

    r12012 r12798  
    5757
    5858      var bestSolution = ScriptingUtils.GetVariable<IRegressionSolution>(script, BestSolutionVariableName);
    59       Assert.AreEqual(0.968329534139836, bestSolution.TrainingRSquared, 1E-8);
    60       Assert.AreEqual(0.982380790563445, bestSolution.TestRSquared, 1E-8);
     59      Assert.AreEqual(0.964863318788504, bestSolution.TrainingRSquared, 1E-8);
     60      Assert.AreEqual(0.984757886306994, bestSolution.TestRSquared, 1E-8);
    6161    }
    6262
Note: See TracChangeset for help on using the changeset viewer.