- Timestamp:
- 11/13/14 10:58:05 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Scripts/GridSearchSVMClassificationScriptTest.cs
r11514 r11547 57 57 58 58 var bestSolution = ScriptingUtils.GetVariable<IClassificationSolution>(script, BestSolutionVariableName); 59 Assert.AreEqual(0.81 7472698907956, bestSolution.TrainingAccuracy, 1E-8);60 Assert.AreEqual(0. 809375, bestSolution.TestAccuracy, 1E-8);59 Assert.AreEqual(0.819032761310452, bestSolution.TrainingAccuracy, 1E-8); 60 Assert.AreEqual(0.721875, bestSolution.TestAccuracy, 1E-8); 61 61 } 62 62 -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Scripts/GridSearchSVMRegressionScriptTest.cs
r11514 r11547 34 34 private const string ScriptItemName = "Grid Search SVM Script - Regression"; 35 35 private const string ScriptItemDescription = "A script that runs a grid search for SVM parameters for solving symbolic regression problems"; 36 private const string ProblemInstanceName = "Keijzer 3 f(x) = 0.3 * x *sin(2 * PI * x); Interval [-3, 3]";36 private const string ProblemInstanceName = "Keijzer 9 f(x) = arcsinh(x) i.e. ln(x + sqrt(x² + 1))"; 37 37 private const string ProblemInstanceDataVaribleName = "problem"; 38 38 private const string BestSolutionVariableName = "bestSolution"; … … 57 57 58 58 var bestSolution = ScriptingUtils.GetVariable<IRegressionSolution>(script, BestSolutionVariableName); 59 Assert.AreEqual(0. 0662219592243362, bestSolution.TrainingRSquared, 1E-8);60 Assert.AreEqual(0. 0794407638195434, bestSolution.TestRSquared, 1E-8);59 Assert.AreEqual(0.982485852864274, bestSolution.TrainingRSquared, 1E-8); 60 Assert.AreEqual(0.98817480950295, bestSolution.TestRSquared, 1E-8); 61 61 } 62 62
Note: See TracChangeset
for help on using the changeset viewer.