- Timestamp:
- 01/20/15 13:00:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Program.cs
r11799 r11801 24 24 CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; 25 25 26 RunDemo();27 //RunGridTest();26 //RunDemo(); 27 RunGridTest(); 28 28 } 29 29 … … 53 53 () => new EpsGreedyPolicy(0.2), 54 54 () => new EpsGreedyPolicy(0.5), 55 () => new UCTPolicy(0.01), 56 () => new UCTPolicy(0.05), 55 57 () => new UCTPolicy(0.1), 56 58 () => new UCTPolicy(0.5), … … 98 100 var instanceFactories = new Func<Random, Tuple<IProblem, int>>[] 99 101 { 100 (rand) => Tuple.Create((IProblem)new SantaFeAntProblem(), 17),102 //(rand) => Tuple.Create((IProblem)new SantaFeAntProblem(), 17), 101 103 (rand) => Tuple.Create((IProblem)new FindPhrasesProblem(rand, 10, numPhrases:5, phraseLen:3, numOptimalPhrases:5, numDecoyPhrases:0, correctReward:1, decoyReward:0, phrasesAsSets:false ), 15), 102 104 (rand) => Tuple.Create((IProblem)new FindPhrasesProblem(rand, 10, numPhrases:5, phraseLen:3, numOptimalPhrases:5, numDecoyPhrases:0, correctReward:1, decoyReward:0, phrasesAsSets:true ), 15), 103 105 (rand) => Tuple.Create((IProblem)new FindPhrasesProblem(rand, 10, numPhrases:5, phraseLen:3, numOptimalPhrases:5, numDecoyPhrases:200, correctReward:1, decoyReward:0.5, phrasesAsSets:false), 15), 104 106 (rand) => Tuple.Create((IProblem)new FindPhrasesProblem(rand, 10, numPhrases:5, phraseLen:3, numOptimalPhrases:5, numDecoyPhrases:200, correctReward:1, decoyReward:0.5, phrasesAsSets:true), 15), 105 (rand) => Tuple.Create((IProblem)new SymbolicRegressionPoly10Problem(), 23)107 //(rand) => Tuple.Create((IProblem)new SymbolicRegressionPoly10Problem(), 23) 106 108 }; 107 109 108 110 foreach (var instanceFactory in instanceFactories) { 109 foreach (var useCanonical in new bool[] { true , false}) {110 foreach (var randomTries in new int[] { 0, 1, 10, /* 5, 100 /*, 500, 1000 */}) {111 foreach (var useCanonical in new bool[] { true /*, false */ }) { 112 foreach (var randomTries in new int[] { 0, /* 1, 10, /* 5, 100 /*, 500, 1000 */}) { 111 113 foreach (var policyFactory in policyFactories) { 112 114 var myRandomTries = randomTries; … … 204 206 // - EpsGreedyPolicy(0.20,max) 205 207 // - GenericThompsonSamplingPolicy("") 206 // - UCTPolicy(0.10) (5 of 5 runs, 35000 iters avg.) 208 // - UCTPolicy(0.10) (5 of 5 runs, 35000 iters avg.), 10 successful runs of 10 with rand-tries 0, bei 40000 iters 9 / 10, bei 30000 1 / 10 207 209 208 210 // good results for artificial ant:
Note: See TracChangeset
for help on using the changeset viewer.