Changeset 15450 for branches/MathNetNumerics-Exploration-2789/Test
- Timestamp:
- 11/06/17 13:12:41 (7 years ago)
- Location:
- branches/MathNetNumerics-Exploration-2789/Test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MathNetNumerics-Exploration-2789/Test/Test.csproj
r15443 r15450 62 62 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll</HintPath> 63 63 </Reference> 64 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 64 65 <Reference Include="HeuristicLab.Common-3.3"> 65 66 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> … … 90 91 <Reference Include="HeuristicLab.Problems.Instances-3.3"> 91 92 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Problems.Instances-3.3.dll</HintPath> 93 </Reference> 94 <Reference Include="HeuristicLab.Problems.Instances.DataAnalysis-3.3"> 95 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Problems.Instances.DataAnalysis-3.3.dll</HintPath> 92 96 </Reference> 93 97 <Reference Include="HeuristicLab.SequentialEngine-3.3"> -
branches/MathNetNumerics-Exploration-2789/Test/UnitTest1.cs
r15443 r15450 110 110 111 111 Console.WriteLine("Best tolerance {0}, RMSE (LOO): {1}", optTol, looRMSE); 112 } 112 113 114 [TestMethod] 115 public void TestGAM() { 116 var provider = new HeuristicLab.Problems.Instances.DataAnalysis.VariousInstanceProvider(); 117 var problemData = provider.LoadData(provider.GetDataDescriptors().First(dd => dd.Name.Contains("Poly"))); 118 // var provider = new HeuristicLab.Problems.Instances.DataAnalysis.RegressionRealWorldInstanceProvider(); 119 // var problemData = provider.LoadData(provider.GetDataDescriptors().First(dd => dd.Name.Contains("Chem"))); 120 121 var gam = new GAM(); 122 gam.MaxIterations = 10; 123 gam.MaxInteractions = 3; 124 gam.Problem.ProblemData = problemData; 125 gam.Start(); 126 127 var solution = (IRegressionSolution)gam.Results["Ensemble solution"].Value; 128 129 Console.WriteLine("RMSE (train) {0}", solution.TrainingRootMeanSquaredError); 130 Console.WriteLine("RMSE (test) {0}", solution.TestRootMeanSquaredError); 113 131 } 114 132 115 133 } 116 134 }
Note: See TracChangeset
for help on using the changeset viewer.