Changeset 11466 for trunk/sources
- Timestamp:
- 10/15/14 11:54:34 (10 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 5 edited
- 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 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r11457 r11466 504 504 <Compile Include="HeuristicLab.Problems.VehicleRouting-3.4\VRPInstancesTest.cs" /> 505 505 <Compile Include="HeuristicLab.Random-3.3\RandomEnumerableSampleTest.cs" /> 506 <Compile Include="HeuristicLab -3.3\Samples\GridSearchScriptTest.cs" />506 <Compile Include="HeuristicLab.Scripting-3.3\GridSearchScriptTest.cs" /> 507 507 <Compile Include="Properties\AssemblyInfo.cs" /> 508 508 <Compile Include="TestRandom.cs" /> … … 546 546 </Content> 547 547 </ItemGroup> 548 <ItemGroup> 549 <Folder Include="HeuristicLab.Scripting-3.3\" /> 550 </ItemGroup> 548 <ItemGroup /> 551 549 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 552 550 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.