Changeset 8873
- Timestamp:
- 11/07/12 10:19:31 (12 years ago)
- Location:
- branches/HeuristicLab.Problems.GaussianProcessTuning
- Files:
-
- 6 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning.Tests/HeuristicLab.Problems.GaussianProcessTuning.Tests.csproj
r8753 r8873 34 34 </PropertyGroup> 35 35 <ItemGroup> 36 <Reference Include="HeuristicLab.Algorithms.DataAnalysis-3.4"> 37 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.DataAnalysis-3.4.dll</HintPath> 38 </Reference> 36 39 <Reference Include="HeuristicLab.Algorithms.GeneticAlgorithm-3.3"> 37 40 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll</HintPath> -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning.Tests/UnitTest.cs
r8753 r8873 31 31 for (int i = 0; i < 1000; i++) { 32 32 var t = HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ProbabilisticTreeCreator.Create(r, g, 50, 7); 33 Console.WriteLine(interpreter.EvaluateGaussianProcessConfiguration(t, problemData)); 33 double negLogLikelihood; 34 HeuristicLab.Algorithms.DataAnalysis.IGaussianProcessSolution solution; 35 interpreter.EvaluateGaussianProcessConfiguration(t, problemData, out negLogLikelihood, out solution); 36 Console.WriteLine(); 34 37 } 35 38 } -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning.sln
r8753 r8873 1 1 2 Microsoft Visual Studio Solution File, Format Version 1 1.003 # Visual Studio 201 02 Microsoft Visual Studio Solution File, Format Version 12.00 3 # Visual Studio 2012 4 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.GaussianProcessTuning", "HeuristicLab.Problems.GaussianProcessTuning\HeuristicLab.Problems.GaussianProcessTuning.csproj", "{9A04599C-D608-4240-8DA6-D41F51C515A3}" 5 ProjectSection(ProjectDependencies) = postProject 6 {94C7714E-29D4-4D6D-B213-2C18D627AB75} = {94C7714E-29D4-4D6D-B213-2C18D627AB75} 7 EndProjectSection 5 8 EndProject 6 9 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.GaussianProcessTuning.Tests", "HeuristicLab.Problems.GaussianProcessTuning.Tests\HeuristicLab.Problems.GaussianProcessTuning.Tests.csproj", "{98C8AD2B-B035-4863-A01E-B659465FF6B2}" 10 ProjectSection(ProjectDependencies) = postProject 11 {94C7714E-29D4-4D6D-B213-2C18D627AB75} = {94C7714E-29D4-4D6D-B213-2C18D627AB75} 12 EndProjectSection 7 13 EndProject 8 14 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3768D612-38EB-47D8-9E79-75D8E5AB00A8}" … … 13 19 EndProjectSection 14 20 EndProject 21 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression-3.3", "HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression\HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression-3.3.csproj", "{94C7714E-29D4-4D6D-B213-2C18D627AB75}" 22 EndProject 15 23 Global 16 24 GlobalSection(TestCaseManagementSettings) = postSolution … … 19 27 GlobalSection(SolutionConfigurationPlatforms) = preSolution 20 28 Debug|Any CPU = Debug|Any CPU 29 Debug|x64 = Debug|x64 30 Debug|x86 = Debug|x86 21 31 Release|Any CPU = Release|Any CPU 32 Release|x64 = Release|x64 33 Release|x86 = Release|x86 22 34 EndGlobalSection 23 35 GlobalSection(ProjectConfigurationPlatforms) = postSolution 24 36 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 25 37 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Debug|Any CPU.Build.0 = Debug|Any CPU 38 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Debug|x64.ActiveCfg = Debug|Any CPU 39 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Debug|x86.ActiveCfg = Debug|Any CPU 26 40 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Release|Any CPU.ActiveCfg = Release|Any CPU 27 41 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Release|Any CPU.Build.0 = Release|Any CPU 42 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Release|x64.ActiveCfg = Release|Any CPU 43 {9A04599C-D608-4240-8DA6-D41F51C515A3}.Release|x86.ActiveCfg = Release|Any CPU 28 44 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 29 45 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Debug|Any CPU.Build.0 = Debug|Any CPU 46 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Debug|x64.ActiveCfg = Debug|Any CPU 47 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Debug|x86.ActiveCfg = Debug|Any CPU 30 48 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Release|Any CPU.ActiveCfg = Release|Any CPU 31 49 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Release|Any CPU.Build.0 = Release|Any CPU 50 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Release|x64.ActiveCfg = Release|Any CPU 51 {98C8AD2B-B035-4863-A01E-B659465FF6B2}.Release|x86.ActiveCfg = Release|Any CPU 52 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 53 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Debug|Any CPU.Build.0 = Debug|Any CPU 54 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Debug|x64.ActiveCfg = Debug|x64 55 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Debug|x64.Build.0 = Debug|x64 56 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Debug|x86.ActiveCfg = Debug|x86 57 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Debug|x86.Build.0 = Debug|x86 58 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Release|Any CPU.ActiveCfg = Release|Any CPU 59 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Release|Any CPU.Build.0 = Release|Any CPU 60 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Release|x64.ActiveCfg = Release|x64 61 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Release|x64.Build.0 = Release|x64 62 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Release|x86.ActiveCfg = Release|x86 63 {94C7714E-29D4-4D6D-B213-2C18D627AB75}.Release|x86.Build.0 = Release|x86 32 64 EndGlobalSection 33 65 GlobalSection(SolutionProperties) = preSolution -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression
-
Property
svn:ignore
set to
obj
Plugin.cs
*.user
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression/GaussianProcessPolyTen.cs
r8826 r8873 48 48 protected override List<List<double>> GenerateValues() { 49 49 var mt = new MersenneTwister(31415); 50 var normalRand = new NormalDistributedRandom(mt, 1, 1);51 50 52 51 List<List<double>> data = new List<List<double>>(); 53 52 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 54 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, -1 0, 10).ToList());53 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, -1, 1).ToList()); 55 54 } 56 55 57 56 58 var hyp = (from i in Enumerable.Range(0, 12) // for each CovSEiso 59 from j in Enumerable.Range(0, 2) // for each parameter (length, scale) 60 select normalRand.NextDouble()) 61 .Concat(new double[] { -5.0 }); // noise 57 var hyp = new double[] 58 { 59 0.0, 0.0, 60 0.0, 0.0, 61 0.0, 0.0, 62 0.0, 0.0, 63 0.0, 0.0, 64 0.0, 0.0, 65 0.0, 0.0, 66 0.0, 0.0, 67 0.0, 0.0, 68 0.0, 0.0, 69 0.0, 0.0, 70 0.0, 0.0, 71 0.0, 0.0, 72 0.0, 0.0, 73 0.0, 0.0, 74 -5.0 // noise 75 }; 76 62 77 63 78 var covarianceFunction = new CovarianceSum(); -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression/GaussianProcessSEIsoDependentNoise.cs
r8826 r8873 60 60 covarianceFunction.Terms.Add(prod); 61 61 covarianceFunction.Terms.Add(new CovarianceNoise()); 62 covarianceFunction.SetParameter(new double[] { Math.Log(0.1), Math.Log(Math.Sqrt(1)), Math.Log(0.5), Math.Log(Math.Sqrt(1)), Math.Log(Math.Sqrt(0.1)), Math.Log(Math.Sqrt(0.01)) }); 62 var hyp = new double[] 63 { 64 Math.Log(0.1), Math.Log(Math.Sqrt(1)), // SE iso 65 Math.Log(0.5), Math.Log(Math.Sqrt(1)), // SE iso for noise 66 Math.Log(Math.Sqrt(0.1)), // dependent noise 67 Math.Log(Math.Sqrt(0.01)) // noise 68 }; 69 covarianceFunction.SetParameter(hyp); 63 70 64 71 var mt = new MersenneTwister(31415); -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression/Util.cs
r8826 r8873 34 34 public static List<double> SampleGaussianProcess(IRandom random, ICovarianceFunction covFunction, List<List<double>> data) { 35 35 36 double[,] x = new double[data[0].Count, 1];36 double[,] x = new double[data[0].Count, data.Count]; 37 37 for (int i = 0; i < x.GetLength(0); i++) 38 38 for (int j = 0; j < x.GetLength(1); j++) -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression/VariousInstanceProvider.cs
r8826 r8873 24 24 25 25 namespace HeuristicLab.Problems.Instances.DataAnalysis { 26 public class VariousInstanceProvider : ArtificialRegressionInstanceProvider {26 public class InstanceProvider : ArtificialRegressionInstanceProvider { 27 27 public override string Name { 28 get { return " VariousBenchmark Problems"; }28 get { return "GPR Benchmark Problems"; } 29 29 } 30 30 public override string Description { … … 40 40 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 41 41 List<IDataDescriptor> descriptorList = new List<IDataDescriptor>(); 42 descriptorList.Add(new BreimanOne());43 descriptorList.Add(new FriedmanOne());44 descriptorList.Add(new FriedmanTwo());45 descriptorList.Add(new PolyTen());46 42 descriptorList.Add(new GaussianProcessPolyTen()); 47 43 descriptorList.Add(new GaussianProcessSEIso()); 44 descriptorList.Add(new GaussianProcessSEIso2dim()); 48 45 descriptorList.Add(new GaussianProcessSEIsoDependentNoise()); 49 descriptorList.Add(new SpatialCoevolution());50 46 return descriptorList; 51 47 }
Note: See TracChangeset
for help on using the changeset viewer.