Changeset 16711 for branches/2936_GQAPIntegration/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleWithOSTest.cs
- Timestamp:
- 03/25/19 17:18:21 (5 years ago)
- Location:
- branches/2936_GQAPIntegration/HeuristicLab.Tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2936_GQAPIntegration/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/2936_GQAPIntegration/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleWithOSTest.cs
r15583 r16711 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 67 67 // been able to identify the real cause. Presumably, execution on a Xeon and a Core i7 processor 68 68 // leads to different results. 69 Assert.AreEqual(0.9 0811178793448177, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8, Environment.NewLine + "Best Quality differs.");70 Assert.AreEqual(0. 87264498853305739, SamplesUtils.GetDoubleResult(osga, "CurrentAverageQuality"), 1E-8, Environment.NewLine + "Current Average Quality differs.");71 Assert.AreEqual(0. 75425658608938817, SamplesUtils.GetDoubleResult(osga, "CurrentWorstQuality"), 1E-8, Environment.NewLine + "Current Worst Quality differs.");72 Assert.AreEqual( 8900, SamplesUtils.GetIntResult(osga, "EvaluatedSolutions"), Environment.NewLine + "Evaluated Solutions differ.");73 Assert.AreEqual(0.9 0811178793448177, bestTrainingSolution.TrainingRSquared, 1E-8, Environment.NewLine + "Best Training Solution Training R² differs.");74 // Assert.AreEqual(0.896290231994223, bestTrainingSolution.TestRSquared, 1E-8, Environment.NewLine + "Best Training Solution Test R² differs.");69 Assert.AreEqual(0.99174959007940156, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8, Environment.NewLine + "Best Quality differs."); 70 Assert.AreEqual(0.9836083751914968, SamplesUtils.GetDoubleResult(osga, "CurrentAverageQuality"), 1E-8, Environment.NewLine + "Current Average Quality differs."); 71 Assert.AreEqual(0.98298394717065463, SamplesUtils.GetDoubleResult(osga, "CurrentWorstQuality"), 1E-8, Environment.NewLine + "Current Worst Quality differs."); 72 Assert.AreEqual(10100, SamplesUtils.GetIntResult(osga, "EvaluatedSolutions"), Environment.NewLine + "Evaluated Solutions differ."); 73 Assert.AreEqual(0.99174959007940156, bestTrainingSolution.TrainingRSquared, 1E-8, Environment.NewLine + "Best Training Solution Training R² differs."); 74 Assert.AreEqual(0.8962902319942232, bestTrainingSolution.TestRSquared, 1E-8, Environment.NewLine + "Best Training Solution Test R² differs."); 75 75 } else { 76 76 Assert.AreEqual(0.9971536312165723, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8, Environment.NewLine + "Best Qualitiy differs."); … … 104 104 var squareroot = grammar.Symbols.OfType<SquareRoot>().Single(); 105 105 var root = grammar.Symbols.OfType<Root>().Single(); 106 var cube = grammar.Symbols.OfType<Cube>().Single(); 107 var cuberoot = grammar.Symbols.OfType<CubeRoot>().Single(); 106 108 var log = grammar.Symbols.OfType<Logarithm>().Single(); 107 109 var exp = grammar.Symbols.OfType<Exponential>().Single(); … … 130 132 grammar.AddAllowedChildSymbol(squareroot, variable); 131 133 134 cube.Enabled = false; 135 cuberoot.Enabled = false; 132 136 root.Enabled = false; 133 137
Note: See TracChangeset
for help on using the changeset viewer.