Changeset 11466 for trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchScriptTest.cs
- Timestamp:
- 10/15/14 11:54:34 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchScriptTest.cs
r11464 r11466 52 52 53 53 [TestMethod] 54 [TestCategory("S amples.Execute")]54 [TestCategory("Scripting")] 55 55 public void RunRandomForestRegressionScriptTest() { 56 56 var assembly = new StartPage().GetType().Assembly; … … 78 78 79 79 [TestMethod] 80 [TestCategory("S amples.Execute")]80 [TestCategory("Scripting")] 81 81 public void RunRandomForestClassificationScriptTest() { 82 82 var assembly = new StartPage().GetType().Assembly; … … 99 99 var vs = script.VariableStore; 100 100 var solution = (IClassificationSolution)vs["demo_bestSolution"]; 101 Assert.IsTrue(solution.TrainingAccuracy.IsAlmost(1) );101 Assert.IsTrue(solution.TrainingAccuracy.IsAlmost(1) && solution.TestAccuracy.IsAlmost(0.953125)); 102 102 } 103 103 } 104 104 105 105 [TestMethod] 106 [TestCategory("S amples.Execute")]106 [TestCategory("Scripting")] 107 107 public void RunSvmRegressionScriptTest() { 108 108 var assembly = new StartPage().GetType().Assembly; … … 125 125 var vs = script.VariableStore; 126 126 var solution = (IRegressionSolution)vs["demo_bestSolution"]; 127 Assert.IsTrue(solution.TrainingRSquared.IsAlmost(0.06622 27492685859));127 Assert.IsTrue(solution.TrainingRSquared.IsAlmost(0.066221959224331) && solution.TestRSquared.IsAlmost(0.0794407638195883)); 128 128 } 129 129 } 130 130 131 131 [TestMethod] 132 [TestCategory("S amples.Execute")]132 [TestCategory("Scripting")] 133 133 public void RunSvmClassificationScriptTest() { 134 134 var assembly = new StartPage().GetType().Assembly; … … 151 151 var vs = script.VariableStore; 152 152 var solution = (IClassificationSolution)vs["demo_bestSolution"]; 153 Assert.IsTrue(solution.TrainingAccuracy.IsAlmost(0.81 4352574102964));153 Assert.IsTrue(solution.TrainingAccuracy.IsAlmost(0.817472698907956) && solution.TestAccuracy.IsAlmost(0.809375)); 154 154 } 155 155 }
Note: See TracChangeset
for help on using the changeset viewer.