Changeset 11547


Ignore:
Timestamp:
11/13/14 10:58:05 (8 years ago)
Author:
bburlacu
Message:

#2234: Updated svm grid search scripts.

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  
    5757
    5858      var bestSolution = ScriptingUtils.GetVariable<IClassificationSolution>(script, BestSolutionVariableName);
    59       Assert.AreEqual(0.817472698907956, 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);
    6161    }
    6262
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Scripts/GridSearchSVMRegressionScriptTest.cs

    r11514 r11547  
    3434    private const string ScriptItemName = "Grid Search SVM Script - Regression";
    3535    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))";
    3737    private const string ProblemInstanceDataVaribleName = "problem";
    3838    private const string BestSolutionVariableName = "bestSolution";
     
    5757
    5858      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);
    6161    }
    6262
Note: See TracChangeset for help on using the changeset viewer.