Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/15 18:24:58 (9 years ago)
Author:
gkronber
Message:

#2283 fixed compile errors and refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Program.cs

    r11792 r11793  
    2424      CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
    2525
    26       RunDemo();
     26      //RunDemo();
    2727      RunGridTest();
    2828    }
     
    191191      // var problem = new FindPhrasesProblem(random, 15, numPhrases, phraseLen, numOptimalPhrases: numPhrases, numDecoyPhrases: 0, correctReward: 1.0, decoyReward: 0.0, phrasesAsSets: true);
    192192
    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)
    194194      // Ant
    195195      // good results e.g. with       var alg = new MctsSampler(problem, 17, random, 1, (rand, numActions) => new ThresholdAscentPolicy(numActions, 500, 0.01));
    196196      // 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();
    201199      //var problem = new SymbolicRegressionProblem("Tower");
    202200      //var problem = new PalindromeProblem();
     
    207205      //var alg = new MctsSampler(problem, 23, random, 0, new BoltzmannExplorationPolicy(100));
    208206      //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));
    211209      //var alg = new MctsQLearningSampler(problem, sentenceLen, random, 0, null);
    212210      //var alg = new MctsQLearningSampler(problem, 30, random, 0, new EpsGreedyPolicy(0.2));
Note: See TracChangeset for help on using the changeset viewer.