- Timestamp:
- 01/18/15 18:24:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Program.cs
r11792 r11793 24 24 CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; 25 25 26 RunDemo();26 //RunDemo(); 27 27 RunGridTest(); 28 28 } … … 191 191 // var problem = new FindPhrasesProblem(random, 15, numPhrases, phraseLen, numOptimalPhrases: numPhrases, numDecoyPhrases: 0, correctReward: 1.0, decoyReward: 0.0, phrasesAsSets: true); 192 192 193 var problem = new SymbolicRegressionPoly10Problem(); // good results e.g. 10 randomtries and EpsGreedyPolicy(0.2, (aInfo)=>aInfo.MaxReward)193 //var problem = new SymbolicRegressionPoly10Problem(); // good results e.g. 10 randomtries and EpsGreedyPolicy(0.2, (aInfo)=>aInfo.MaxReward) 194 194 // Ant 195 195 // good results e.g. with var alg = new MctsSampler(problem, 17, random, 1, (rand, numActions) => new ThresholdAscentPolicy(numActions, 500, 0.01)); 196 196 // GaussianModelWithUnknownVariance (and Q= 0.99-quantil) also works well for Ant 197 // very good results with: var alg = new SequentialSearch(problem, 17, random, 0, 198 // new HeuristicLab.Algorithms.Bandits.GrammarPolicies.GenericGrammarPolicy(problem, new UCB1TunedPolicy(), true)); 199 200 //var problem = new SantaFeAntProblem(); 197 198 var problem = new SantaFeAntProblem(); 201 199 //var problem = new SymbolicRegressionProblem("Tower"); 202 200 //var problem = new PalindromeProblem(); … … 207 205 //var alg = new MctsSampler(problem, 23, random, 0, new BoltzmannExplorationPolicy(100)); 208 206 //var alg = new MctsSampler(problem, 23, random, 0, new EpsGreedyPolicy(0.1)); 209 var alg = new SequentialSearch(problem, 23, random, 0,210 new HeuristicLab.Algorithms.Bandits.GrammarPolicies.GenericGrammarPolicy(problem, new EpsGreedyPolicy(0.2), true));207 var alg = new SequentialSearch(problem, 17, random, 0, 208 new HeuristicLab.Algorithms.Bandits.GrammarPolicies.GenericGrammarPolicy(problem, new BoltzmannExplorationPolicy(10), true)); 211 209 //var alg = new MctsQLearningSampler(problem, sentenceLen, random, 0, null); 212 210 //var alg = new MctsQLearningSampler(problem, 30, random, 0, new EpsGreedyPolicy(0.2));
Note: See TracChangeset
for help on using the changeset viewer.